Module: VBOX

Defined in:
lib/vbox.rb,
lib/vbox-ng.rb,
lib/vbox/vm.rb,
lib/vbox/cli.rb,
lib/vbox/cmdlineapi.rb

Defined Under Namespace

Classes: CLI, CmdLineAPI, Snapshot, VM

Constant Summary collapse

UUID_RE =

UUID_RE = /h{8-h4-h4-h4-h12}/ # only in ruby 1.9 :(

/\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}/i
ALIASES =
{'clonevm'=>'clone', 'destroy'=>'delete', 'rm'=>'delete'}
COMMANDS =
%w'start pause resume reset poweroff savestate acpipowerbutton acpisleepbutton clone delete show'
@@verbosity =
ENV['VBOX_DEBUG'].to_i

Class Method Summary collapse

Class Method Details

.apiObject



11
12
13
# File 'lib/vbox.rb', line 11

def api
  @@api ||= CmdLineAPI.new
end

.verbosityObject



15
16
17
# File 'lib/vbox.rb', line 15

def verbosity
  @@verbosity
end

.verbosity=(v) ⇒ Object



19
20
21
# File 'lib/vbox.rb', line 19

def verbosity= v
  @@verbosity = v
end