diff options
| author | Markus Reiter | 2016-09-20 15:11:33 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:05 +0200 |
| commit | 59212445da7048233ef32705433e548783fcf84b (patch) | |
| tree | d1ff519490652760f5c37aa55032d82482ebbda1 /Library/Homebrew/cask/lib/hbc/cli.rb | |
| parent | b957a1b7e6c1305617cff429f16f73f0c8ec604c (diff) | |
| download | brew-59212445da7048233ef32705433e548783fcf84b.tar.bz2 | |
Run `rubocop —auto-correct`.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index 1378176da..7b3b886b9 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -117,11 +117,11 @@ class Hbc::CLI rescue NameError nil end + if klass.respond_to?(:run) # invoke "run" on a Ruby library which follows our coding conventions - klass.run(*rest) - else # other Ruby libraries must do everything via "require" + klass.run(*rest) end elsif Hbc::Utils.which "brewcask-#{command}" # arbitrary external executable on PATH, Homebrew-style |
