Module: VagrantPlugins::ProviderOpenStack::Action
- Includes:
- Vagrant::Action::Builtin
- Defined in:
- lib/vagrant-openstack/action.rb,
lib/vagrant-openstack/action/boot.rb,
lib/vagrant-openstack/action/state.rb,
lib/vagrant-openstack/action/delete.rb,
lib/vagrant-openstack/action/connect.rb,
lib/vagrant-openstack/action/created.rb,
lib/vagrant-openstack/action/release_ip.rb,
lib/vagrant-openstack/action/sync_folder.rb,
lib/vagrant-openstack/action/read_ssh_info.rb
Defined Under Namespace
Classes: Boot, Connect, Created, Delete, ReadSSHInfo, ReleaseIp, State, SyncFolders
Class Method Summary collapse
-
.action_destroy ⇒ Object
This action is called to terminate the remote machine.
-
.action_provision ⇒ Object
This action is called when ‘vagrant provision` is called.
-
.action_read_ssh_info ⇒ Object
This action is called to read the SSH info of the machine.
-
.action_ssh ⇒ Object
This action is called to SSH into the machine.
-
.action_state ⇒ Object
This action is called to read the state of the machine.
-
.action_up ⇒ Object
This action brings the machine up from nothing, including importing the box, configuring metadata, and booting.
Class Method Details
.action_destroy ⇒ Object
This action is called to terminate the remote machine.
36 37 38 39 40 41 42 43 |
# File 'lib/vagrant-openstack/action.rb', line 36 def self.action_destroy Vagrant::Action::Builder.new.tap do |b| #b.use ConfigValidate b.use Connect b.use ReleaseIp b.use Delete end end |
.action_provision ⇒ Object
This action is called when ‘vagrant provision` is called.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/vagrant-openstack/action.rb', line 20 def self.action_provision Vagrant::Action::Builder.new.tap do |b| #b.use ConfigValidate b.use Call, Created do |env, b2| if !env[:result] b2.use MessageNotCreated next end b2.use Provision b2.use SyncFolders end end end |
.action_read_ssh_info ⇒ Object
This action is called to read the SSH info of the machine. The resulting state is expected to be put into the ‘:machine_ssh_info` key.
59 60 61 62 63 64 65 |
# File 'lib/vagrant-openstack/action.rb', line 59 def self.action_read_ssh_info Vagrant::Action::Builder.new.tap do |b| #b.use ConfigValidate b.use Connect b.use ReadSSHInfo end end |
.action_ssh ⇒ Object
This action is called to SSH into the machine.
68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/vagrant-openstack/action.rb', line 68 def self.action_ssh Vagrant::Action::Builder.new.tap do |b| #b.use ConfigValidate b.use Call, Created do |env, b2| if !env[:result] #b2.use MessageNotCreated next end b2.use SSHExec end end end |
.action_state ⇒ Object
This action is called to read the state of the machine. The resulting state is expected to be put into the ‘:machine_state_id` key.
48 49 50 51 52 53 54 |
# File 'lib/vagrant-openstack/action.rb', line 48 def self.action_state Vagrant::Action::Builder.new.tap do |b| #b.use ConfigValidate b.use Connect b.use State end end |
.action_up ⇒ Object
This action brings the machine up from nothing, including importing the box, configuring metadata, and booting.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/vagrant-openstack/action.rb', line 84 def self.action_up Vagrant::Action::Builder.new.tap do |b| #b.use ConfigValidate b.use Connect b.use Call, Created do |env, b2| if env[:result] #b2.use MessageAlreadyCreated next end b2.use Boot b2.use SyncFolders end end end |