Class: VBox::Process

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

Direct Known Subclasses

GuestProcess

Instance Attribute Summary collapse

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 Attribute Details

#refObject (readonly)

Returns the value of attribute ref.



4
5
6
# File 'lib/virtualbox/classes/process.rb', line 4

def ref
  @ref
end

Instance Method Details

#argumentsObject



24
25
26
# File 'lib/virtualbox/classes/process.rb', line 24

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

#environmentObject



20
21
22
# File 'lib/virtualbox/classes/process.rb', line 20

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

#executable_pathObject



28
29
30
# File 'lib/virtualbox/classes/process.rb', line 28

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

#exit_codeObject



16
17
18
# File 'lib/virtualbox/classes/process.rb', line 16

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

#nameObject



32
33
34
# File 'lib/virtualbox/classes/process.rb', line 32

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

#pidObject

Attributes



8
9
10
# File 'lib/virtualbox/classes/process.rb', line 8

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

#read(args = {}) ⇒ Object

Methods



38
39
40
41
# File 'lib/virtualbox/classes/process.rb', line 38

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

#statusObject



12
13
14
# File 'lib/virtualbox/classes/process.rb', line 12

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

#terminateObject



43
44
45
# File 'lib/virtualbox/classes/process.rb', line 43

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

#wait_for(args = {}) ⇒ Object



47
48
49
50
# File 'lib/virtualbox/classes/process.rb', line 47

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

#wait_for_array(args = {}) ⇒ Object



52
53
54
55
# File 'lib/virtualbox/classes/process.rb', line 52

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

#write(args = {}) ⇒ Object



57
58
59
60
# File 'lib/virtualbox/classes/process.rb', line 57

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

#write_array(args = {}) ⇒ Object



62
63
64
65
# File 'lib/virtualbox/classes/process.rb', line 62

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