class MotherBrain::CommandRunner::CleanRoom
@api private
Attributes
actions[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
MotherBrain::CleanRoomBase::new
# File lib/mb/command_runner.rb, line 176 def initialize(*args) super @actions = Array.new Gear.all.each do |klass| clean_room = self klass.instance_eval do define_method :run, ->(job, *args, &block) do clean_room.send(:actions) << action = action(job, *args, &block) action end end end end
Protected Instance Methods
wait(seconds)
click to toggle source
@param [Fixnum] seconds
# File lib/mb/command_runner.rb, line 203 def wait(seconds) Celluloid.sleep(seconds) end