Class: GemSearch::Commands::Browse

Inherits:
Base
  • Object
show all
Defined in:
lib/gem_search/commands/browse.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GemSearch::Commands::Base

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/gem_search/commands/browse.rb', line 4

def call
  executor = Executor.new
  executor.browse(options[:browse])
rescue OpenURI::HTTPError
  puts 'No such gem.'
  abort
rescue => e
  puts e.message
  puts e.stacktrace if ENV['DEBUG']
  abort
end