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