Class: Mysh::GlsCommand
- Defined in:
- lib/mysh/internal/actions/gls.rb
Overview
-
mysh/internal/actions/gls.rb – The mysh gls (gem ls) command.
Constant Summary
Constants inherited from Action
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
-
#initialize(*args) ⇒ GlsCommand
constructor
Set up this command.
-
#process_command(input) ⇒ Object
Execute the gls command.
Methods inherited from Action
#action_info, #process_quick_command, #short_name
Constructor Details
#initialize(*args) ⇒ GlsCommand
Set up this command.
10 11 12 13 |
# File 'lib/mysh/internal/actions/gls.rb', line 10 def initialize(*args) super @report = @mask = @specs = nil end |
Instance Method Details
#process_command(input) ⇒ Object
Execute the gls command.
16 17 18 19 20 |
# File 'lib/mysh/internal/actions/gls.rb', line 16 def process_command(input) process_args(input.args) gather_gems send(@report) end |