Class: Loops::Commands::ListCommand
Instance Attribute Summary
#engine, #options
Instance Method Summary
collapse
#initialize, #invoke
Constructor Details
This class inherits a constructor from Loops::Command
Instance Method Details
#execute ⇒ Object
2
3
4
5
6
7
8
9
10
|
# File 'lib/loops/commands/list_command.rb', line 2
def execute
puts 'Available loops:'
engine.loops_config.each do |name, config|
puts " Loop: #{name}" + (config['disabled'] ? ' (disabled)' : '')
config.each do |k, v|
puts " - #{k}: #{v}"
end
end
end
|
#requires_bootstrap? ⇒ Boolean
12
13
14
|
# File 'lib/loops/commands/list_command.rb', line 12
def requires_bootstrap?
false
end
|