Class: Vbox::Command

Inherits:
Vagrant::Command::GroupBase
  • Object
show all
Defined in:
lib/vbox/command.rb

Instance Method Summary collapse

Instance Method Details

#build(boxname) ⇒ Object



45
46
47
# File 'lib/vbox/command.rb', line 45

def build(boxname)
  Vbox::Session.build(boxname,options)
end

#define(boxname, template) ⇒ Object



32
33
34
# File 'lib/vbox/command.rb', line 32

def define(boxname, template)
  Vbox::Session.define(boxname,template,options)
end

#destroy(boxname) ⇒ Object



55
56
57
# File 'lib/vbox/command.rb', line 55

def destroy(boxname)
  Vbox::Session.destroy_vm(boxname)
end

#export(boxname) ⇒ Object



66
67
68
69
70
# File 'lib/vbox/command.rb', line 66

def export(boxname)
  if (!boxname.nil?)
    Vbox::Session.export_box(boxname)
  end
end

#listObject



60
61
62
# File 'lib/vbox/command.rb', line 60

def list
  Vbox::Session.list_definitions
end

#ostypesObject



50
51
52
# File 'lib/vbox/command.rb', line 50

def ostypes
  Vbox::Session.list_ostypes
end

#templatesObject



26
27
28
# File 'lib/vbox/command.rb', line 26

def templates
  Vbox::Session.list_templates
end

#undefine(boxname) ⇒ Object



37
38
39
# File 'lib/vbox/command.rb', line 37

def undefine(boxname)
  Vbox::Session.undefine(boxname)
end

#validate(boxname) ⇒ Object



74
75
76
77
78
# File 'lib/vbox/command.rb', line 74

def validate(boxname)
  if (!boxname.nil?)
    Vbox::Session.validate_box(boxname,options)
  end
end