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

Version Path
vagrant-vcloud-0.5.0 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.4.7 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.4.6 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.4.4 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.4.3 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.4.2 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.4.1 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.4.0 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.3.3 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.3.2 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.3.1 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.3.0 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.2.2 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.2.1 lib/vagrant-vcloud/action/resume.rb
vagrant-vcloud-0.2.0 lib/vagrant-vcloud/action/resume.rb