Class: Wakame::Command::DeployConfig

Inherits:
Object
  • Object
show all
Includes:
Wakame::Command, Service
Defined in:
lib/wakame/command/deploy_config.rb

Constant Summary

Constants included from Service

Service::Property, Service::STATUS_ENTERING, Service::STATUS_FAIL, Service::STATUS_INIT, Service::STATUS_MIGRATING, Service::STATUS_OFFLINE, Service::STATUS_ONLINE, Service::STATUS_QUITTING, Service::STATUS_RELOADING, Service::STATUS_RUNNING, Service::STATUS_STARTING, Service::STATUS_STOPPING, Service::STATUS_TERMINATE, Service::STATUS_UNKNOWN

Instance Method Summary collapse

Methods included from Wakame::Command

included, #options=, #params

Instance Method Details

#runObject



8
9
10
11
12
13
14
# File 'lib/wakame/command/deploy_config.rb', line 8

def run
  cluster.each_instance.map { |svc_inst|
    next if svc_inst.cloud_host_id.nil?
    Wakame.log.debug(svc_inst)
    trigger_action(Wakame::Actions::DeployConfig.new(svc_inst))
  }
end