Class: VagrantPlugins::Abiquo::Provider
- Inherits:
-
Object
- Object
- VagrantPlugins::Abiquo::Provider
- Defined in:
- lib/vagrant_abiquo/provider.rb
Instance Method Summary collapse
- #action(name) ⇒ Object
-
#initialize(machine) ⇒ Provider
constructor
A new instance of Provider.
- #ssh_info ⇒ Object
- #state ⇒ Object
Constructor Details
#initialize(machine) ⇒ Provider
Returns a new instance of Provider.
6 7 8 |
# File 'lib/vagrant_abiquo/provider.rb', line 6 def initialize(machine) @machine = machine end |
Instance Method Details
#action(name) ⇒ Object
10 11 12 13 |
# File 'lib/vagrant_abiquo/provider.rb', line 10 def action(name) return Actions.send("action_#{name}") if Actions.respond_to?("action_#{name}") nil end |
#ssh_info ⇒ Object
15 16 17 18 |
# File 'lib/vagrant_abiquo/provider.rb', line 15 def ssh_info env = @machine.action("read_ssh_info") env[:machine_ssh_info] end |
#state ⇒ Object
20 21 22 23 24 25 |
# File 'lib/vagrant_abiquo/provider.rb', line 20 def state env = @machine.action('check_state') state = env[:machine_state] long = short = state.to_s Vagrant::MachineState.new(state, short, long) end |