Sha256: 208a62fb74044134285c8afd6d975909dc99f91796cd8bc1a0d72bc47d3d9142
Contents?: true
Size: 561 Bytes
Versions: 4
Compression:
Stored size: 561 Bytes
Contents
module VagrantPlugins module VCloud module Action class PowerOn def initialize(app, env) @app = app @logger = Log4r::Logger.new('vagrant_vcloud::action::power_on') end def call(env) @env = env cfg = env[:machine].provider_config cnx = cfg.vcloud_cnx.driver env[:ui].info('Powering on VM...') poweron_vm = cnx.poweron_vm(env[:machine].id) cnx.wait_task_completion(poweron_vm) @app.call(env) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems