Class: Vbox::Command
- Inherits:
-
Vagrant::Command::GroupBase
- Object
- Vagrant::Command::GroupBase
- Vbox::Command
- Defined in:
- lib/vbox/command.rb
Instance Method Summary collapse
- #build(boxname) ⇒ Object
- #define(boxname, template) ⇒ Object
- #destroy(boxname) ⇒ Object
- #export(boxname) ⇒ Object
- #list ⇒ Object
- #ostypes ⇒ Object
- #templates ⇒ Object
- #undefine(boxname) ⇒ Object
- #validate(boxname) ⇒ Object
Instance Method Details
#build(boxname) ⇒ Object
45 46 47 |
# File 'lib/vbox/command.rb', line 45 def build(boxname) Vbox::Session.build(boxname,) end |
#define(boxname, template) ⇒ Object
32 33 34 |
# File 'lib/vbox/command.rb', line 32 def define(boxname, template) Vbox::Session.define(boxname,template,) 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 |
#list ⇒ Object
60 61 62 |
# File 'lib/vbox/command.rb', line 60 def list Vbox::Session.list_definitions end |
#ostypes ⇒ Object
50 51 52 |
# File 'lib/vbox/command.rb', line 50 def ostypes Vbox::Session.list_ostypes end |
#templates ⇒ Object
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,) end end |