Sha256: f6b079409d4206496fcce6170a9e672299aa0465e080fd0586c35d3600fcccd3
Contents?: true
Size: 741 Bytes
Versions: 7
Compression:
Stored size: 741 Bytes
Contents
require 'log4r' require 'vagrant-deltacloud-provider/action/abstract_action' require 'vagrant-deltacloud-provider/client/deltacloud' module VagrantPlugins module Deltacloud module Action class StartServer < AbstractAction def initialize(app, _env) @app = app @logger = Log4r::Logger.new('vagrant_deltacloud::action::start_server') end def execute(env) env[:deltacloud_client] = Deltacloud::DeltacloudClient.instance if env[:machine].id env[:ui].info(I18n.t('vagrant_deltacloud.starting_server')) env[:deltacloud_client].start_server(env, env[:machine].id) end @app.call(env) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems