"Fossies" - the Fresh Open Source Software Archive 
Member "vagrant-2.2.14/lib/vagrant/action.rb" (20 Nov 2020, 3787 Bytes) of package /linux/misc/vagrant-2.2.14.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the last
Fossies "Diffs" side-by-side code changes report for "action.rb":
2.2.9_vs_2.2.10.
1 require 'vagrant/action/builder'
2
3 module Vagrant
4 module Action
5 autoload :Hook, 'vagrant/action/hook'
6 autoload :Runner, 'vagrant/action/runner'
7 autoload :Warden, 'vagrant/action/warden'
8
9 # Builtin contains middleware classes that are shipped with Vagrant-core
10 # and are thus available to all plugins as a "standard library" of sorts.
11 module Builtin
12 autoload :BoxAdd, "vagrant/action/builtin/box_add"
13 autoload :BoxCheckOutdated, "vagrant/action/builtin/box_check_outdated"
14 autoload :BoxRemove, "vagrant/action/builtin/box_remove"
15 autoload :Call, "vagrant/action/builtin/call"
16 autoload :CleanupDisks, "vagrant/action/builtin/cleanup_disks"
17 autoload :CloudInitSetup, "vagrant/action/builtin/cloud_init_setup"
18 autoload :CloudInitWait, "vagrant/action/builtin/cloud_init_wait"
19 autoload :Confirm, "vagrant/action/builtin/confirm"
20 autoload :ConfigValidate, "vagrant/action/builtin/config_validate"
21 autoload :Delayed, "vagrant/action/builtin/delayed"
22 autoload :DestroyConfirm, "vagrant/action/builtin/destroy_confirm"
23 autoload :Disk, "vagrant/action/builtin/disk"
24 autoload :EnvSet, "vagrant/action/builtin/env_set"
25 autoload :GracefulHalt, "vagrant/action/builtin/graceful_halt"
26 autoload :HandleBox, "vagrant/action/builtin/handle_box"
27 autoload :HandleBoxUrl, "vagrant/action/builtin/handle_box_url"
28 autoload :HandleForwardedPortCollisions, "vagrant/action/builtin/handle_forwarded_port_collisions"
29 autoload :HasProvisioner, "vagrant/action/builtin/has_provisioner"
30 autoload :IsEnvSet, "vagrant/action/builtin/is_env_set"
31 autoload :IsState, "vagrant/action/builtin/is_state"
32 autoload :Lock, "vagrant/action/builtin/lock"
33 autoload :Message, "vagrant/action/builtin/message"
34 autoload :PrepareClone, "vagrant/action/builtin/prepare_clone"
35 autoload :Provision, "vagrant/action/builtin/provision"
36 autoload :ProvisionerCleanup, "vagrant/action/builtin/provisioner_cleanup"
37 autoload :SetHostname, "vagrant/action/builtin/set_hostname"
38 autoload :SSHExec, "vagrant/action/builtin/ssh_exec"
39 autoload :SSHRun, "vagrant/action/builtin/ssh_run"
40 autoload :SyncedFolders, "vagrant/action/builtin/synced_folders"
41 autoload :SyncedFolderCleanup, "vagrant/action/builtin/synced_folder_cleanup"
42 autoload :Trigger, "vagrant/action/builtin/trigger"
43 autoload :WaitForCommunicator, "vagrant/action/builtin/wait_for_communicator"
44 end
45
46 module General
47 autoload :Package, 'vagrant/action/general/package'
48 autoload :PackageSetupFiles, 'vagrant/action/general/package_setup_files'
49 autoload :PackageSetupFolders, 'vagrant/action/general/package_setup_folders'
50 end
51
52 # This is the action that will add a box from a URL. This middleware
53 # sequence is built-in to Vagrant. Plugins can hook into this like any
54 # other middleware sequence. This is particularly useful for provider
55 # plugins, which can hook in to do things like verification of boxes
56 # that are downloaded.
57 def self.action_box_add
58 Builder.new.tap do |b|
59 b.use Builtin::BoxAdd
60 end
61 end
62
63 # This actions checks if a box is outdated in a given Vagrant
64 # environment for a single machine.
65 def self.action_box_outdated
66 Builder.new.tap do |b|
67 b.use Builtin::BoxCheckOutdated
68 end
69 end
70
71 # This is the action that will remove a box given a name (and optionally
72 # a provider). This middleware sequence is built-in to Vagrant. Plugins
73 # can hook into this like any other middleware sequence.
74 def self.action_box_remove
75 Builder.new.tap do |b|
76 b.use Builtin::BoxRemove
77 end
78 end
79 end
80 end