aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-20 03:44:21 +0200
committerMarkus Reiter2017-05-22 02:51:16 +0200
commit957c5fb4f0f690ed82b8a6a38ec106f4784a9ed9 (patch)
treea8f9ab9f767f56bf11e542e2564b54ef12359ee3 /Library
parented6934b95414e69a80ccb430c46e551cf97a30fc (diff)
downloadbrew-957c5fb4f0f690ed82b8a6a38ec106f4784a9ed9.tar.bz2
Refactor `CLI::Search`.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/search.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb
index 7abd744e4..108053854 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/search.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb
@@ -1,8 +1,12 @@
module Hbc
class CLI
class Search < Base
- def self.run(*arguments)
- render_results(*search(*arguments))
+ def self.run(*args)
+ new(*args).run
+ end
+
+ def run
+ self.class.render_results(*self.class.search(*@args))
end
def self.extract_regexp(string)