Mitchell Hashimoto e29c5436e1 Box commands
2011-12-17 19:52:48 -08:00

22 lines
390 B
Ruby

require 'optparse'
module Vagrant
module Command
class BoxAdd < Base
def execute
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: vagrant box add <name> <url>"
end
# Parse the options
argv = parse_options(opts)
return if !argv
@env.boxes.add(argv[0], argv[1])
end
end
end
end