Class: Loops::Commands::ListCommand
- Inherits:
-
Loops::Command
- Object
- Loops::Command
- Loops::Commands::ListCommand
- Defined in:
- lib/loops/commands/list_command.rb
Instance Attribute Summary
Attributes inherited from Loops::Command
Instance Method Summary collapse
Methods inherited from Loops::Command
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 |