Sha256: e846daa07cafe2e179cc0334268b25cab1d9660609ab34936798de14593a2a98

Contents?: true

Size: 596 Bytes

Versions: 11

Compression:

Stored size: 596 Bytes

Contents

require 'log4r'

require 'vagrant-conoha/action/abstract_action'

module VagrantPlugins
  module ConoHa
    module Action
      class StartServer < AbstractAction
        def initialize(app, _env)
          @app    = app
          @logger = Log4r::Logger.new('vagrant_openstack::action::start_server')
        end

        def execute(env)
          if env[:machine].id
            env[:ui].info(I18n.t('vagrant_openstack.starting_server'))
            env[:openstack_client].nova.start_server(env, env[:machine].id)
          end
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-conoha-0.1.10 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.9 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.8 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.7 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.6 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.5 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.4 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.3 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.2 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.1 lib/vagrant-conoha/action/start_server.rb
vagrant-conoha-0.1.0 lib/vagrant-conoha/action/start_server.rb