Sha256: e61b1466aeb3720520672e6297259b29c6d2b2e5b6908ceda7d5049daa094d29
Contents?: true
Size: 757 Bytes
Versions: 4
Compression:
Stored size: 757 Bytes
Contents
require 'optparse' module Veewee module Command class BaseboxDefine < Vagrant::Command::Base 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 # Parse the options 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 end end end
Version data entries
4 entries across 4 versions & 2 rubygems