Sha256: 7082ac1232be0cd4d8debd44285848720dd0b747f2483f60f30a57bf55744c5c
Contents?: true
Size: 659 Bytes
Versions: 11
Compression:
Stored size: 659 Bytes
Contents
require 'log4r' require 'vagrant-conoha/action/abstract_action' module VagrantPlugins module ConoHa module Action class StopServer < AbstractAction def initialize(app, _env) @app = app @logger = Log4r::Logger.new('vagrant_openstack::action::stop_server') end def execute(env) if env[:machine].id @logger.info "Stopping server #{env[:machine].id}..." env[:ui].info(I18n.t('vagrant_openstack.stopping_server')) env[:openstack_client].nova.stop_server(env, env[:machine].id) end @app.call(env) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems