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

Instance Method Details

#forward(command, options = {}) ⇒ Object



5
6
7
8
# File 'lib/mccloud/provider/vmfusion/vm/forward.rb', line 5

def forward(command,options={})
  @forward_threads=Array.new
  return self.ssh_forward(options)
end

#halt(command, options = {}) ⇒ Object



5
6
7
# File 'lib/mccloud/provider/vmfusion/vm/halt.rb', line 5

def halt(command,options={})
    raw.stop
end

#resume(command, options = {}) ⇒ Object



5
6
7
# File 'lib/mccloud/provider/vmfusion/vm/resume.rb', line 5

def resume(command,options={})
    raw.start
end

#suspend(command, options = {}) ⇒ Object



5
6
7
# File 'lib/mccloud/provider/vmfusion/vm/suspend.rb', line 5

def suspend(command,options={})
    raw.suspend
end

#up(command, options = {}) ⇒ Object



5
6
7
# File 'lib/mccloud/provider/vmfusion/vm/up.rb', line 5

def up(command,options={})
  raw.start
end