Class: GemSearch::Commands::Run
- Defined in:
- lib/gem_search/commands/run.rb
Constant Summary collapse
- ENABLE_SORT_OPTS =
{ 'v' => 'version_downloads', 'a' => 'downloads', 'n' => 'name', }
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from GemSearch::Commands::Base
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/gem_search/commands/run.rb', line 10 def call unless valid?(.arguments) puts abort end executor = Executor.new gem = .arguments[0] executor.search(gem, setup_opts) rescue GemSearch::LibraryNotFound => e puts e. abort rescue => e puts "An unexpected #{e.class} has occurred." puts e. puts e.backtrace if ENV['DEBUG'] abort end |