6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/veewee/command/basebox_define.rb', line 6
def execute
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Define a new basebox starting from a template"
opts.separator ""
opts.separator "Usage: vagrant basebox define <boxname> <template>"
opts.on("-f", "--force", "overwrite the definition") do |f|
options['force'] = f
end
end
argv = parse_options(opts)
return if !argv
raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 2
Veewee::Session.define(argv[0], argv[1], options)
end
|