Sha256: b7afb9c77ccccbf52bb98ba520dc1fb948d5deee2f3b8f861ff947823bf2c3c8
Contents?: true
Size: 790 Bytes
Versions: 7
Compression:
Stored size: 790 Bytes
Contents
require 'vagrant-deltacloud-provider/action/abstract_action' require 'vagrant-deltacloud-provider/client/deltacloud' module VagrantPlugins module Deltacloud module Action class Resume < AbstractAction def initialize(app, _env) @app = app @logger = Log4r::Logger.new('vagrant_deltacloud::action::resume_server') end def execute(env) env[:deltacloud_client] = Deltacloud::DeltacloudClient.instance if env[:machine].id @logger.info "Resuming suspended VM #{env[:machine].id}..." env[:ui].info I18n.t('vagrant.actions.vm.resume.resuming') env[:deltacloud_client].resume_server(env, env[:machine].id) end @app.call(env) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems