Sha256: 2eabbce37c030f6a102b0bbf3294f9c31cc497d61e10e0a6f57eb5982a3e4a5c
Contents?: true
Size: 948 Bytes
Versions: 29
Compression:
Stored size: 948 Bytes
Contents
require 'optparse' module Veewee module Command module Vagrant class List < ::Vagrant::Command::Base def execute options = {} opts = OptionParser.new do |opts| opts.banner = "List all defined boxes" opts.separator "" opts.separator "Usage: vagrant basebox list" 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.definitions.each do |name,definition| 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