Sha256: da445cd329e39064af6fded941335f0b6474378b6b3421bb8ba61c6b608ec4c2
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 Bytes
Contents
module Vagrant class Commands # Adds a box to the local filesystem, given a URI. module Box class Add < BoxCommand BoxCommand.subcommand "add", self description "Add a box" def execute(args) if args.length != 2 show_help return end box = Vagrant::Box.find(env, args[0]) if !box.nil? error_and_exit(:box_already_exists) return # for tests end Vagrant::Box.add(env, args[0], args[1]) end def options_spec(opts) opts.banner = "Usage: vagrant box add NAME URI" end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
vagrantup-0.5.4 | lib/vagrant/commands/box/add.rb |
vagrant-0.5.4 | lib/vagrant/commands/box/add.rb |