Sha256: a54370eb5a528b5f0dcc135934972465acef723f017247cf440afb01a6c2e11a
Contents?: true
Size: 593 Bytes
Versions: 9
Compression:
Stored size: 593 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 @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
9 entries across 9 versions & 1 rubygems