Sha256: 9c1e19b05fa8966c428418489eac1153deb39cbf6e4887d36fcbe83234c665f4
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'optparse' module Veewee module Command module Vagrant class Templates < ::Vagrant::Command::Base def execute options = {} opts = OptionParser.new do |opts| opts.banner = "List the available templates" opts.separator "" opts.separator "Usage: vagrant basebox templates" 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.ui.info "The following templates are available:" venv.templates.each do |name,template| venv.ui.info "vagrant basebox define '<boxname>' '#{name}'",:prefix => false end rescue Veewee::Error => ex venv.ui.error ex exit -1 end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veewee-0.3.0.alpha6 | lib/veewee/command/vagrant/templates.rb |
veewee-0.3.0.alpha5 | lib/veewee/command/vagrant/templates.rb |