Sha256: 8d27e947bf1d04131bcd172bd0d0bcd7ea5d0ffad4039308e5afeecfe6ab95a0
Contents?: true
Size: 958 Bytes
Versions: 29
Compression:
Stored size: 958 Bytes
Contents
require 'optparse' module Veewee module Command module Vagrant class Ostypes < ::Vagrant::Command::Base def execute options = {} opts = OptionParser.new do |opts| opts.banner = "List the available Operating System types" opts.separator "" opts.separator "Usage: vagrant basebox ostypes" opts.on("-d", "--debug", "enable debugging") do |d| options['debug'] = d end end # Parse the options argv = parse_options(opts) return if !argv begin venv=Veewee::Environment.new(options) venv.ui = @env.ui venv.ostypes.each do |name| venv.ui.info("- #{name}", :prefix => false) end rescue Veewee::Error => ex venv.ui.error(ex,:prefix => false) exit -1 end end end end end end
Version data entries
29 entries across 29 versions & 2 rubygems