Class: Mysh::GlsCommand

Inherits:
Action show all
Defined in:
lib/mysh/internal/gls.rb

Overview

The mysh gls (gem ls) command.

Instance Attribute Summary

Attributes inherited from Action

#description, #name

Instance Method Summary collapse

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/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/gls.rb', line 16

def process_command(input)
  process_args(input.args)
  gather_gems
  send(@report)
end