Permalink
Browse files

update the veewee build method to use -d for definition instead of -b…

… for base
  • Loading branch information...
1 parent 2f18d0f commit d61569cf3fe0e3fc161c5d35294448b4a6a0f85d @joshk joshk committed Nov 21, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/travis/boxes/cli/veewee.rb
@@ -10,16 +10,16 @@ class Veewee < Thor
include Cli
- desc 'build', 'Build a base box (only the development box by default)'
- method_option :base, :aliases => '-b', :default => 'natty32', :desc => 'Base box for this box (e.g. natty32)'
- method_option :upload, :aliases => '-u', :desc => 'Upload the box'
+ desc 'build', 'Build a base box from a veewee definition(eg. natty32.box)'
+ method_option :definition, :aliases => '-d', :default => 'natty32', :desc => 'Definition to build the base box from (e.g. natty32)'
+ method_option :upload, :aliases => '-u', :desc => 'Upload the box'
def build
run <<-sh
- vagrant basebox build '#{options['base']}'
- vagrant basebox export #{options['base']}
+ vagrant basebox build '#{options['definition']}'
+ vagrant basebox export #{options['definition']}
mkdir -p boxes
- mv #{options['base']}.box boxes/#{options['base']}.box
+ mv #{options['definition']}.box boxes/#{options['definition']}.box
sh
end

0 comments on commit d61569c

Please sign in to comment.