Sha256: 3ec2f85c8ba22841aa0b6932e82e4b1d81ff8e6638fdd21cda72f44e8bb22eb3
Contents?: true
Size: 646 Bytes
Versions: 11
Compression:
Stored size: 646 Bytes
Contents
require 'vagrant-conoha/action/abstract_action' module VagrantPlugins module ConoHa 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
11 entries across 11 versions & 1 rubygems