Module: Vagrant::Action

Defined in:
lib/vagrant/action.rb,
lib/vagrant/action/hook.rb,
lib/vagrant/action/runner.rb,
lib/vagrant/action/warden.rb,
lib/vagrant/action/builder.rb,
lib/vagrant/action/builtin/call.rb,
lib/vagrant/action/builtin/disk.rb,
lib/vagrant/action/builtin/lock.rb,
lib/vagrant/action/builtin/box_add.rb,
lib/vagrant/action/builtin/confirm.rb,
lib/vagrant/action/builtin/delayed.rb,
lib/vagrant/action/builtin/env_set.rb,
lib/vagrant/action/builtin/message.rb,
lib/vagrant/action/builtin/ssh_run.rb,
lib/vagrant/action/builtin/trigger.rb,
lib/vagrant/action/general/package.rb,
lib/vagrant/action/builtin/is_state.rb,
lib/vagrant/action/builtin/ssh_exec.rb,
lib/vagrant/action/builtin/provision.rb,
lib/vagrant/action/builtin/box_remove.rb,
lib/vagrant/action/builtin/box_update.rb,
lib/vagrant/action/builtin/handle_box.rb,
lib/vagrant/action/builtin/is_env_set.rb,
lib/vagrant/action/builtin/set_hostname.rb,
lib/vagrant/action/builtin/cleanup_disks.rb,
lib/vagrant/action/builtin/graceful_halt.rb,
lib/vagrant/action/builtin/prepare_clone.rb,
lib/vagrant/action/builtin/handle_box_url.rb,
lib/vagrant/action/builtin/synced_folders.rb,
lib/vagrant/action/builtin/cloud_init_wait.rb,
lib/vagrant/action/builtin/config_validate.rb,
lib/vagrant/action/builtin/destroy_confirm.rb,
lib/vagrant/action/builtin/has_provisioner.rb,
lib/vagrant/action/builtin/cloud_init_setup.rb,
lib/vagrant/action/builtin/box_check_outdated.rb,
lib/vagrant/action/builtin/mixin_provisioners.rb,
lib/vagrant/action/builtin/provisioner_cleanup.rb,
lib/vagrant/action/general/package_setup_files.rb,
lib/vagrant/action/builtin/mixin_synced_folders.rb,
lib/vagrant/action/builtin/synced_folder_cleanup.rb,
lib/vagrant/action/builtin/wait_for_communicator.rb,
lib/vagrant/action/general/package_setup_folders.rb,
lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb

Defined Under Namespace

Modules: Builtin, General Classes: Builder, Hook, Runner, Warden

Class Method Summary collapse

Class Method Details

.action_box_addObject

This is the action that will add a box from a URL. This middleware sequence is built-in to Vagrant. Plugins can hook into this like any other middleware sequence. This is particularly useful for provider plugins, which can hook in to do things like verification of boxes that are downloaded.


61
62
63
64
65
# File 'lib/vagrant/action.rb', line 61

def self.action_box_add
  Builder.new.tap do |b|
    b.use Builtin::BoxAdd
  end
end

.action_box_outdatedObject

This actions checks if a box is outdated in a given Vagrant environment for a single machine.


69
70
71
72
73
# File 'lib/vagrant/action.rb', line 69

def self.action_box_outdated
  Builder.new.tap do |b|
    b.use Builtin::BoxCheckOutdated
  end
end

.action_box_removeObject

This is the action that will remove a box given a name (and optionally a provider). This middleware sequence is built-in to Vagrant. Plugins can hook into this like any other middleware sequence.


78
79
80
81
82
# File 'lib/vagrant/action.rb', line 78

def self.action_box_remove
  Builder.new.tap do |b|
    b.use Builtin::BoxRemove
  end
end