module VagrantPlugins::OpenStack::Action
Public Class Methods
action_destroy()
click to toggle source
This action is called to destroy the remote machine.
# File lib/vagrant-openstack/action.rb, line 12 def self.action_destroy Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use Call, IsCreated do |env, b2| if !env[:result] b2.use MessageNotCreated next end b2.use ConnectOpenStack b2.use DeleteServer end end end
action_provision()
click to toggle source
# File lib/vagrant-openstack/action.rb, line 100 def self.action_provision Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use Call, IsCreated do |env, b2| if !env[:result] b2.use MessageNotCreated next end b2.use Provision b2.use SyncFolders end end end
action_read_ssh_info()
click to toggle source
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.
# File lib/vagrant-openstack/action.rb, line 30 def self.action_read_ssh_info Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use Call, ReadSSHInfoFromCache do |env, b2| if !env[:machine_ssh_info] b2.use ConnectOpenStack b2.use ReadSSHInfoFromAPI end end end end
action_read_state()
click to toggle source
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.
# File lib/vagrant-openstack/action.rb, line 45 def self.action_read_state Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use ConnectOpenStack b.use ReadState end end
action_ssh()
click to toggle source
# File lib/vagrant-openstack/action.rb, line 53 def self.action_ssh Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use Call, IsCreated do |env, b2| if !env[:result] b2.use MessageNotCreated next end b2.use SSHExec end end end
action_ssh_run()
click to toggle source
# File lib/vagrant-openstack/action.rb, line 67 def self.action_ssh_run Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use Call, IsCreated do |env, b2| if !env[:result] b2.use MessageNotCreated next end b2.use SSHRun end end end
action_up()
click to toggle source
# File lib/vagrant-openstack/action.rb, line 81 def self.action_up Vagrant::Action::Builder.new.tap do |b| b.use defined?(HandleBox) ? HandleBox : HandleBoxUrl b.use ConfigValidate b.use Call, IsCreated do |env, b2| if env[:result] b2.use MessageAlreadyCreated next end b2.use ConnectOpenStack b2.use Provision b2.use SyncFolders b2.use SetHostname b2.use CreateServer end end end