Class: Veewee::Command::BaseboxUndefine
- Inherits:
-
Vagrant::Command::Base
- Object
- Vagrant::Command::Base
- Veewee::Command::BaseboxUndefine
- Defined in:
- lib/veewee/command/basebox_undefine.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/veewee/command/basebox_undefine.rb', line 4 def execute = {} opts = OptionParser.new do |opts| opts. = "Removes the definition of a basebox " opts.separator "" opts.separator "Usage: vagrant basebox undefine <boxname>" end # Parse the options argv = (opts) return if !argv raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1 Veewee::Session.undefine(argv[0]) end |