Module: Mccloud::Provider::Vmfusion::VmCommand
- Included in:
- Vm
- Defined in:
- lib/mccloud/provider/vmfusion/vm/up.rb,
lib/mccloud/provider/vmfusion/vm/halt.rb,
lib/mccloud/provider/vmfusion/vm/resume.rb,
lib/mccloud/provider/vmfusion/vm/forward.rb,
lib/mccloud/provider/vmfusion/vm/suspend.rb
Instance Method Summary collapse
- #forward(command, options = {}) ⇒ Object
- #halt(command, options = {}) ⇒ Object
- #resume(command, options = {}) ⇒ Object
- #suspend(command, options = {}) ⇒ Object
- #up(command, options = {}) ⇒ Object
Instance Method Details
#forward(command, options = {}) ⇒ Object
5 6 7 8 |
# File 'lib/mccloud/provider/vmfusion/vm/forward.rb', line 5 def forward(command,={}) @forward_threads=Array.new return self.ssh_forward() end |
#halt(command, options = {}) ⇒ Object
5 6 7 |
# File 'lib/mccloud/provider/vmfusion/vm/halt.rb', line 5 def halt(command,={}) raw.stop end |
#resume(command, options = {}) ⇒ Object
5 6 7 |
# File 'lib/mccloud/provider/vmfusion/vm/resume.rb', line 5 def resume(command,={}) raw.start end |
#suspend(command, options = {}) ⇒ Object
5 6 7 |
# File 'lib/mccloud/provider/vmfusion/vm/suspend.rb', line 5 def suspend(command,={}) raw.suspend end |
#up(command, options = {}) ⇒ Object
5 6 7 |
# File 'lib/mccloud/provider/vmfusion/vm/up.rb', line 5 def up(command,={}) raw.start end |