Skip to content

Commit

Permalink
correct the upload method in Veewee
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Nov 24, 2011
1 parent 659bf7f commit 9e8b0e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/travis/boxes/cli/veewee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ def build
method_option :definition, :aliases => '-d', :default => 'natty32', :desc => 'Definition of the box to upload (e.g. natty32)'

def upload
source = "boxes/#{options['definition']}.box"
target = "boxes/bases/#{options['definition']}.box"

::Travis::Boxes::Upload.new(config.s3).perform(source, target)
remote = ::Travis::Boxes::Remote.new
remote.upload("boxes/#{definition}.box", "bases/#{definition}.box")
end

protected
Expand Down

0 comments on commit 9e8b0e8

Please sign in to comment.