Module: VagrantPlugins::ManagedServers::Action

Includes:
Vagrant::Action::Builtin
Defined in:
lib/vagrant-managed-servers/action.rb,
lib/vagrant-managed-servers/action/upload_status.rb,
lib/vagrant-managed-servers/action/download_status.rb

Defined Under Namespace

Classes: DownloadStatus, UploadStatus

Class Method Summary collapse

Class Method Details

.action_download_statusObject



23
24
25
26
27
28
# File 'lib/vagrant-managed-servers/action.rb', line 23

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

.action_pushObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/vagrant-managed-servers/action.rb', line 9

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