Sha256: f245988897027cf56f7dbd3c7bee4baedb32212d41d2dd57e0867fbc57367457

Contents?: true

Size: 611 Bytes

Versions: 12

Compression:

Stored size: 611 Bytes

Contents

require 'log4r'

require 'vagrant-openstack-provider/action/abstract_action'

module VagrantPlugins
  module Openstack
    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

12 entries across 12 versions & 2 rubygems

Version Path
vagrant-openstack-provider-0.13.0 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.12.0 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-illuin-0.11.1 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.11.0 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.10.0 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.9.0 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.8.0 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.7.2 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.7.1 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.7.0 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.6.1 lib/vagrant-openstack-provider/action/start_server.rb
vagrant-openstack-provider-0.6.0 lib/vagrant-openstack-provider/action/start_server.rb