module ActiveDuty::Boots

Public Instance Methods

boots() click to toggle source
# File lib/active_duty/boots.rb, line 16
def boots
  Array(self.class._boots)
end
deploy_troops!() click to toggle source
# File lib/active_duty/boots.rb, line 8
def deploy_troops!
  boots.each do |boot|
    klass = boot[:class_name].constantize
    boot = klass.new(*boot[:options][:args]).call
    called!(boot)
  end
end