Sha256: 8197313b33cae2fff0ef13f46e263ca4ca408e5a149d6534585b1353e79c658b
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'vagrant-openstack-illuin-provider/action/abstract_action' module VagrantPlugins module Openstack module Action class Resume < AbstractAction def initialize(app, _env) @app = app @logger = Log4r::Logger.new('vagrant_openstack::action::resume_server') end def execute(env) if env[:machine].id @logger.info "Resuming suspended VM #{env[:machine].id}..." env[:ui].info I18n.t('vagrant.actions.vm.resume.resuming') env[:openstack_client].nova.resume_server(env, env[:machine].id) end @app.call(env) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-openstack-illuin-provider-0.12.0 | lib/vagrant-openstack-illuin-provider/action/resume.rb |