Class: Sashimi::Commands::List

Inherits:
Object
  • Object
show all
Defined in:
lib/sashimi/commands.rb

Instance Method Summary collapse

Constructor Details

#initialize(base_command) ⇒ List

Returns a new instance of List.



165
166
167
# File 'lib/sashimi/commands.rb', line 165

def initialize(base_command)
  @base_command = base_command        
end

Instance Method Details

#optionsObject



169
170
171
172
173
174
175
# File 'lib/sashimi/commands.rb', line 169

def options
  OptionParser.new do |o|
    o.set_summary_indent('  ')
    o.banner =    "Usage: #{@base_command.script_name} list"
    o.define_head "List all installed plugins."
  end
end

#parse!(args) ⇒ Object



177
178
179
180
# File 'lib/sashimi/commands.rb', line 177

def parse!(args)
  options.parse!(args)
  puts Plugin.list
end