lib/veewee/command.rb in veewee-0.1.2 vs lib/veewee/command.rb in veewee-0.1.3
- old
+ new
@@ -19,21 +19,26 @@
module Veewee
class Command < Vagrant::Command::GroupBase
register "basebox","Commands to manage baseboxes"
- desc "templates", "List the currently available box templates"
+ desc "templates", "List the currently available basebox templates"
def templates
Veewee::Session.list_templates
end
- desc "define BOXNAME TEMPLATE", "Define a new box starting from a template"
+ desc "define BOXNAME TEMPLATE", "Define a new basebox starting from a template"
method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the definition"
def define(boxname, template)
Veewee::Session.define(boxname,template,options)
end
+ desc "undefine BOXNAME", "Removes the definition of a basebox "
+ def undefine(boxname)
+ Veewee::Session.undefine(boxname)
+ end
+
desc "build BOXNAME", "Build the box BOXNAME"
method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the basebox"
def build(boxname)
Veewee::Session.build(boxname,options)
end
@@ -41,20 +46,20 @@
desc "ostypes", "List the available Operating System types"
def ostypes
Veewee::Session.list_ostypes
end
- desc "destroy BOXNAME", "Destroy the virtualmachine of a basebox"
+ desc "destroy BOXNAME", "Destroys the virtualmachine that was build for a basebox"
def destroy(boxname)
puts Veewee::Session.destroy_vm(boxname)
end
- desc "list", "Lists all defined boxes"
+ desc "list", "Lists all defined baseboxes"
def list
Veewee::Session.list_definitions
end
- desc "export [NAME]", "export the box"
+ desc "export [NAME]", "Exports the basebox to the vagrant box format"
method_options :force => :boolean
def export(boxname)
if (!boxname.nil?)
Veewee::Session.export_box(boxname)
end
\ No newline at end of file