Sha256: d0be06c258937a643523f9aaed78d46e82e8e65071ac7e847fa04f7850fd0827

Contents?: true

Size: 865 Bytes

Versions: 5

Compression:

Stored size: 865 Bytes

Contents

# It is useful to be able to call up, provision, reload, and destroy as a single
# unit - it makes things like parallel provisioning more seamless and provides
# a useful action hook for the push command.
module VagrantPlugins
  module ManagedServers
    module Action
      include Vagrant::Action::Builtin

      def self.action_push
        Vagrant::Action::Builder.new.tap do |b|
          b.use action_up
          b.use Call, action_provision do |env, b2|
            if env[:reboot]
              b2.use Call, action_reload do |_env, _b3|
              end
            end
          end
          b.use UploadStatus
          b.use action_destroy
        end
      end

      def self.action_download_status
        Vagrant::Action::Builder.new.tap do |b|
          b.use ConfigValidate
          b.use DownloadStatus
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-orchestrate-0.6.5 lib/vagrant-managed-servers/action.rb
vagrant-orchestrate-0.6.3 lib/vagrant-managed-servers/action.rb
vagrant-orchestrate-0.6.2 lib/vagrant-managed-servers/action.rb
vagrant-orchestrate-0.6.1 lib/vagrant-managed-servers/action.rb
vagrant-orchestrate-0.6.0 lib/vagrant-managed-servers/action.rb