Class: VBox::GuestSession
- Inherits:
-
Base
- Object
- Base
- VBox::GuestSession
show all
- Defined in:
- lib/virtualbox/classes/guest_session.rb
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
#close ⇒ Object
61
62
63
|
# File 'lib/virtualbox/classes/guest_session.rb', line 61
def close
VBox::WebService.send_request(:i_guest_session_close, _this)
end
|
#copy_from(args = {}) ⇒ Object
65
66
67
68
69
|
# File 'lib/virtualbox/classes/guest_session.rb', line 65
def copy_from(args={})
ensure_hash args
progress = VBox::WebService.send_request(:i_guest_session_copy_from, _this.merge(args))
VBox::Progress.new(progress)
end
|
#copy_to(args = {}) ⇒ Object
71
72
73
74
75
|
# File 'lib/virtualbox/classes/guest_session.rb', line 71
def copy_to(args={})
ensure_hash args
progress = VBox::WebService.send_request(:i_guest_session_copy_to, _this.merge(args))
VBox::Progress.new(progress)
end
|
#directories ⇒ Object
45
46
47
48
49
50
|
# File 'lib/virtualbox/classes/guest_session.rb', line 45
def directories
directories = VBox::WebService.send_request(:i_guest_session_get_directories, _this)
directories.map do |directory|
VBox::GuestDirectory.new(directory)
end
end
|
#directory_create(args = {}) ⇒ Object
77
78
79
80
|
# File 'lib/virtualbox/classes/guest_session.rb', line 77
def directory_create(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_directory_create, _this.merge(args))
end
|
#directory_create_temp(args = {}) ⇒ Object
82
83
84
85
|
# File 'lib/virtualbox/classes/guest_session.rb', line 82
def directory_create_temp(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_directory_create_temp, _this.merge(args))
end
|
#directory_exists(args = {}) ⇒ Object
87
88
89
90
|
# File 'lib/virtualbox/classes/guest_session.rb', line 87
def directory_exists(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_directory_exists, _this.merge(args))
end
|
#directory_open(args = {}) ⇒ Object
92
93
94
95
96
|
# File 'lib/virtualbox/classes/guest_session.rb', line 92
def directory_open(args={})
ensure_hash args
guest_directory = VBox::WebService.send_request(:i_guest_session_directory_open, _this.merge(args))
VBox::GuestDirectory.new(guest_directory)
end
|
#directory_query_info(args = {}) ⇒ Object
98
99
100
101
102
|
# File 'lib/virtualbox/classes/guest_session.rb', line 98
def directory_query_info(args={})
ensure_hash args
fs_obj_info = VBox::WebService.send_request(:i_guest_session_directory_query_info, _this.merge(args))
VBox::GuestFsObjInfo.new(fs_obj_info)
end
|
#directory_remove(args = {}) ⇒ Object
104
105
106
107
|
# File 'lib/virtualbox/classes/guest_session.rb', line 104
def directory_remove(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_directory_remove, _this.merge(args))
end
|
#directory_remove_recursive(args = {}) ⇒ Object
109
110
111
112
113
|
# File 'lib/virtualbox/classes/guest_session.rb', line 109
def directory_remove_recursive(args={})
ensure_hash args
progress = VBox::WebService.send_request(:i_guest_session_directory_remove_recursive, _this.merge(args))
VBox::Progress.new(progress)
end
|
#directory_rename(args = {}) ⇒ Object
115
116
117
118
|
# File 'lib/virtualbox/classes/guest_session.rb', line 115
def directory_rename(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_directory_rename, _this.merge(args))
end
|
#directory_set_acl(args = {}) ⇒ Object
120
121
122
123
|
# File 'lib/virtualbox/classes/guest_session.rb', line 120
def directory_set_acl(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_directory_set_acl, _this.merge(args))
end
|
#domain ⇒ Object
10
11
12
|
# File 'lib/virtualbox/classes/guest_session.rb', line 10
def domain
VBox::WebService.send_request(:i_guest_session_get_domain, _this)
end
|
#environment ⇒ Object
30
31
32
|
# File 'lib/virtualbox/classes/guest_session.rb', line 30
def environment
VBox::WebService.send_request(:i_guest_session_get_environment, _this)
end
|
#environment=(environment) ⇒ Object
34
35
36
|
# File 'lib/virtualbox/classes/guest_session.rb', line 34
def environment=(environment)
VBox::WebService.send_request(:i_guest_session_set_environment, _this.merge(:environment => environment))
end
|
#environment_clear ⇒ Object
125
126
127
|
# File 'lib/virtualbox/classes/guest_session.rb', line 125
def environment_clear
VBox::WebService.send_request(:i_guest_session_environment_clear, _this)
end
|
#environment_get(args = {}) ⇒ Object
129
130
131
132
|
# File 'lib/virtualbox/classes/guest_session.rb', line 129
def environment_get(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_environment_get, _this.merge(args))
end
|
#environment_set(args = {}) ⇒ Object
134
135
136
137
|
# File 'lib/virtualbox/classes/guest_session.rb', line 134
def environment_set(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_environment_set, _this.merge(args))
end
|
#environment_unset(args = {}) ⇒ Object
139
140
141
142
|
# File 'lib/virtualbox/classes/guest_session.rb', line 139
def environment_unset(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_environment_unset, _this.merge(args))
end
|
#file_create_temp(args = {}) ⇒ Object
144
145
146
147
148
|
# File 'lib/virtualbox/classes/guest_session.rb', line 144
def file_create_temp(args={})
ensure_hash args
guest_file = VBox::WebService.send_request(:i_guest_session_file_create_temp, _this.merge(args))
VBox::GuestFile.new(guest_file)
end
|
#file_exists(args = {}) ⇒ Object
150
151
152
153
|
# File 'lib/virtualbox/classes/guest_session.rb', line 150
def file_exists(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_file_exists, _this.merge(args))
end
|
#file_open(args = {}) ⇒ Object
155
156
157
158
159
|
# File 'lib/virtualbox/classes/guest_session.rb', line 155
def file_open(args={})
ensure_hash args
guest_file = VBox::WebService.send_request(:i_guest_session_file_open, _this.merge(args))
VBox::GuestFile.new(guest_file)
end
|
#file_query_info(args = {}) ⇒ Object
161
162
163
164
165
|
# File 'lib/virtualbox/classes/guest_session.rb', line 161
def file_query_info(args={})
ensure_hash args
fs_obj_info = VBox::WebService.send_request(:i_guest_session_file_query_info, _this.merge(args))
VBox::GuestFsObjInfo.new(fs_obj_info)
end
|
#file_query_size(args = {}) ⇒ Object
167
168
169
170
|
# File 'lib/virtualbox/classes/guest_session.rb', line 167
def file_query_size(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_file_query_size, _this.merge(args))
end
|
#file_remove(args = {}) ⇒ Object
172
173
174
175
|
# File 'lib/virtualbox/classes/guest_session.rb', line 172
def file_remove(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_file_remove, _this.merge(args))
end
|
#file_rename(args = {}) ⇒ Object
177
178
179
180
|
# File 'lib/virtualbox/classes/guest_session.rb', line 177
def file_rename(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_file_rename, _this.merge(args))
end
|
#file_set_acl(args = {}) ⇒ Object
182
183
184
185
|
# File 'lib/virtualbox/classes/guest_session.rb', line 182
def file_set_acl(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_file_set_acl, _this.merge(args))
end
|
#files ⇒ Object
52
53
54
55
56
57
|
# File 'lib/virtualbox/classes/guest_session.rb', line 52
def files
files = VBox::WebService.send_request(:i_guest_session_get_files, _this)
files.map do |file|
VBox::GuestFile.new(file)
end
end
|
#id ⇒ Object
18
19
20
|
# File 'lib/virtualbox/classes/guest_session.rb', line 18
def id
VBox::WebService.send_request(:i_guest_session_get_id, _this)
end
|
#name ⇒ Object
14
15
16
|
# File 'lib/virtualbox/classes/guest_session.rb', line 14
def name
VBox::WebService.send_request(:i_guest_session_get_name, _this)
end
|
#process_create(args = {}) ⇒ Object
187
188
189
190
191
|
# File 'lib/virtualbox/classes/guest_session.rb', line 187
def process_create(args={})
ensure_hash args
guest_process = VBox::WebService.send_request(:i_guest_session_process_create, _this.merge(args))
VBox::GuestProcess.new(guest_process)
end
|
#process_create_ex(args = {}) ⇒ Object
193
194
195
196
197
|
# File 'lib/virtualbox/classes/guest_session.rb', line 193
def process_create_ex(args={})
ensure_hash args
guest_process = VBox::WebService.send_request(:i_guest_session_process_create_ex, _this.merge(args))
VBox::GuestProcess.new(guest_process)
end
|
#process_get(args = {}) ⇒ Object
199
200
201
202
203
|
# File 'lib/virtualbox/classes/guest_session.rb', line 199
def process_get(args={})
ensure_hash args
guest_process = VBox::WebService.send_request(:i_guest_session_process_get, _this.merge(args))
VBox::GuestProcess.new(guest_process)
end
|
#processes ⇒ Object
38
39
40
41
42
43
|
# File 'lib/virtualbox/classes/guest_session.rb', line 38
def processes
guest_processes = VBox::WebService.send_request(:i_guest_session_get_processes, _this)
guest_processes.map do |guest_process|
VBox::GuestProcess.new(guest_process)
end
end
|
#symlink_create(args = {}) ⇒ Object
205
206
207
208
|
# File 'lib/virtualbox/classes/guest_session.rb', line 205
def symlink_create(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_symlink_create, _this.merge(args))
end
|
#symlink_exists(args = {}) ⇒ Object
210
211
212
213
|
# File 'lib/virtualbox/classes/guest_session.rb', line 210
def symlink_exists(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_symlink_exists, _this.merge(args))
end
|
#symlink_read(args = {}) ⇒ Object
215
216
217
218
|
# File 'lib/virtualbox/classes/guest_session.rb', line 215
def symlink_read(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_symlink_read, _this.merge(args))
end
|
#symlink_remove_directory(args = {}) ⇒ Object
220
221
222
223
|
# File 'lib/virtualbox/classes/guest_session.rb', line 220
def symlink_remove_directory(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_symlink_remove_directory, _this.merge(args))
end
|
#symlink_remove_file(args = {}) ⇒ Object
225
226
227
228
|
# File 'lib/virtualbox/classes/guest_session.rb', line 225
def symlink_remove_file(args={})
ensure_hash args
VBox::WebService.send_request(:i_guest_session_symlink_remove_file, _this.merge(args))
end
|
#timeout ⇒ Object
22
23
24
|
# File 'lib/virtualbox/classes/guest_session.rb', line 22
def timeout
VBox::WebService.send_request(:i_guest_session_get_timeout, _this)
end
|
#timeout=(timeout) ⇒ Object
26
27
28
|
# File 'lib/virtualbox/classes/guest_session.rb', line 26
def timeout=(timeout)
VBox::WebService.send_request(:i_guest_session_set_timeout, _this.merge(:timeout => timeout))
end
|
#user ⇒ Object
6
7
8
|
# File 'lib/virtualbox/classes/guest_session.rb', line 6
def user
VBox::WebService.send_request(:i_guest_session_get_user, _this)
end
|