Sha256: fd0ce43ad03b9754bac494871ab8d0fba5083a39fc8b53c450c6e9b6878beb42
Contents?: true
Size: 1.05 KB
Versions: 8
Compression:
Stored size: 1.05 KB
Contents
module Vagrant class Commands module Box # Repackage a box which has been added. class Repackage < BoxCommand BoxCommand.subcommand "repackage", self description "Repackages a box which has already been added." def execute(args=[]) args = parse_options(args) return show_help if args.length != 1 box = Vagrant::Box.find(env, args.first) return error_and_exit(:box_repackage_doesnt_exist) if box.nil? box.repackage(options) end def options_spec(opts) opts.banner = "Usage: vagrant box repackage NAME [--output FILENAME] [--include FILES]" options["package.output"] = nil options["package.include"] = [] opts.on("--include x,y,z", Array, "List of files to include in the package") do |v| options["package.include"] = v end opts.on("-o", "--output FILE", "File to save the package as.") do |v| options["package.output"] = v end end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems