Class: Loops::Commands::DebugCommand

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

Instance Attribute Summary

Attributes inherited from Loops::Command

#engine, #options

Instance Method Summary collapse

Methods inherited from Loops::Command

#initialize, #invoke, #requires_bootstrap?

Constructor Details

This class inherits a constructor from Loops::Command

Instance Method Details

#executeObject



2
3
4
5
6
7
# File 'lib/loops/commands/debug_command.rb', line 2

def execute
  Loops.logger.write_to_console = true
  puts "Starting one loop in debug mode: #{options[:args].first}"
  engine.debug_loop!(options[:args].first)
  exit(0)
end