Class: Loops::Commands::ListCommand

Inherits:
Loops::Command show all
Defined in:
lib/loops/commands/list_command.rb

Instance Attribute Summary

Attributes inherited from Loops::Command

#engine, #options

Instance Method Summary collapse

Methods inherited from Loops::Command

#initialize, #invoke

Constructor Details

This class inherits a constructor from Loops::Command

Instance Method Details

#executeObject



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

Returns:

  • (Boolean)


12
13
14
# File 'lib/loops/commands/list_command.rb', line 12

def requires_bootstrap?
  false
end