Class: Mysh::GemInfoCommand
Overview
Get information on the gem environment.
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
-
#process_command(input) ⇒ Object
Execute the @gem shell command.
Methods inherited from Action
#action_info, #initialize, #process_quick_command, #short_name
Constructor Details
This class inherits a constructor from Mysh::Action
Instance Method Details
#process_command(input) ⇒ Object
Execute the @gem shell command.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mysh/show/gem.rb', line 10 def process_command(input) print WORKING Gem.refresh args = input.cooked_body.split(" ")[1..-1] if args.empty? general else specific(args) end end |