Sha256: fae65d0fae16dc9b331d7a199b5f894285b75c7f9d9081874db85bb270ad68cc
Contents?: true
Size: 722 Bytes
Versions: 4
Compression:
Stored size: 722 Bytes
Contents
module Veewee module Command class BaseboxValidate < Vagrant::Command::Base def execute options = {} opts = OptionParser.new do |opts| opts.banner = "Validates a box against vagrant compliancy rules" opts.separator "" opts.separator "Usage: vagrant basebox validate <boxname>" opts.on("-u", "--user", "user to login with") do |u| options['user'] = u end end # Parse the options argv = parse_options(opts) return if !argv raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1 Veewee::Session.validate_box(argv[0], options) end end end end
Version data entries
4 entries across 4 versions & 2 rubygems