Sha256: 5eb34ea34e5209fda48276e406e5bb6c45d3a6491eb162244197688c143b40f5
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
require 'log4r' module VagrantPlugins module Openstack module Action class StopServer def initialize(app, _env) @app = app @logger = Log4r::Logger.new('vagrant_openstack::action::stop_server') end def call(env) if 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-openstack-provider-0.2.0 | lib/vagrant-openstack-provider/action/stop_server.rb |