Class: VBox::Process

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/process.rb

Direct Known Subclasses

GuestProcess

Instance Attribute Summary

Attributes inherited from Base

#ref

Instance Method Summary collapse

Methods inherited from Base

#_this, #delete!, #ensure_hash, #initialize, #vbox_class

Constructor Details

This class inherits a constructor from VBox::Base

Instance Method Details

#argumentsObject



22
23
24
# File 'lib/virtualbox/classes/process.rb', line 22

def arguments
  VBox::WebService.send_request(:i_process_get_arguments, _this)
end

#environmentObject



18
19
20
# File 'lib/virtualbox/classes/process.rb', line 18

def environment
  VBox::WebService.send_request(:i_process_get_environment, _this)
end

#executable_pathObject



26
27
28
# File 'lib/virtualbox/classes/process.rb', line 26

def executable_path
  VBox::WebService.send_request(:i_process_get_executable_path, _this)
end

#exit_codeObject



14
15
16
# File 'lib/virtualbox/classes/process.rb', line 14

def exit_code
  VBox::WebService.send_request(:i_process_get_exit_code, _this)
end

#nameObject



30
31
32
# File 'lib/virtualbox/classes/process.rb', line 30

def name
  VBox::WebService.send_request(:i_process_get_name, _this)
end

#pidObject

Attributes



6
7
8
# File 'lib/virtualbox/classes/process.rb', line 6

def pid
  VBox::WebService.send_request(:i_process_get_pid, _this)
end

#read(args = {}) ⇒ Object

Methods



36
37
38
39
# File 'lib/virtualbox/classes/process.rb', line 36

def read(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_process_read, _this.merge(args))
end

#statusObject



10
11
12
# File 'lib/virtualbox/classes/process.rb', line 10

def status
  VBox::WebService.send_request(:i_process_get_status, _this)
end

#terminateObject



41
42
43
# File 'lib/virtualbox/classes/process.rb', line 41

def terminate
  VBox::WebService.send_request(:i_process_terminate, _this)
end

#wait_for(args = {}) ⇒ Object



45
46
47
48
# File 'lib/virtualbox/classes/process.rb', line 45

def wait_for(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_process_wait_for, _this.merge(args))
end

#wait_for_array(args = {}) ⇒ Object



50
51
52
53
# File 'lib/virtualbox/classes/process.rb', line 50

def wait_for_array(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_process_wait_for_array, _this.merge(args))
end

#write(args = {}) ⇒ Object



55
56
57
58
# File 'lib/virtualbox/classes/process.rb', line 55

def write(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_process_write, _this.merge(args))
end

#write_array(args = {}) ⇒ Object



60
61
62
63
# File 'lib/virtualbox/classes/process.rb', line 60

def write_array(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_process_write_array, _this.merge(args))
end