class Percheron::Commands::Console
Public Instance Methods
execute()
click to toggle source
Calls superclass method
Percheron::Commands::Abstract#execute
# File lib/percheron/commands/console.rb, line 7 def execute super require 'pry-byebug' pry Percheron end
Private Instance Methods
create(unit_names, start: false)
click to toggle source
# File lib/percheron/commands/console.rb, line 30 def create(unit_names, start: false) stack.create!(unit_names: [ *unit_names ], start: start) nil end
logs(unit_name, follow: false)
click to toggle source
# File lib/percheron/commands/console.rb, line 15 def logs(unit_name, follow: false) stack.logs!(unit_name, follow: follow) nil end
purge(unit_names)
click to toggle source
# File lib/percheron/commands/console.rb, line 25 def purge(unit_names) stack.purge!(unit_names: [ *unit_names ]) nil end
restart(unit_names)
click to toggle source
# File lib/percheron/commands/console.rb, line 45 def restart(unit_names) stack.restart!(unit_names: [ *unit_names ]) nil end
shell(unit_name)
click to toggle source
# File lib/percheron/commands/console.rb, line 20 def shell(unit_name) stack.shell!(unit_name) nil end
start(unit_names)
click to toggle source
# File lib/percheron/commands/console.rb, line 35 def start(unit_names) stack.start!(unit_names: [ *unit_names ]) nil end
stop(unit_names)
click to toggle source
# File lib/percheron/commands/console.rb, line 40 def stop(unit_names) stack.stop!(unit_names: [ *unit_names ]) nil end