lib/travis/cli/setup/s3.rb in travis-1.6.3.travis.377.4 vs lib/travis/cli/setup/s3.rb in travis-1.6.3.travis.379.4

- old
+ new

@@ -9,10 +9,13 @@ def run deploy 's3', 'push' do |config| config['access_key_id'] = ask("Access key ID: ").to_s config['secret_access_key'] = ask("Secret access key: ") { |q| q.echo = "*" }.to_s config['bucket'] = ask("Bucket: ").to_s - + local_dir = ask("Local project directory to upload (Optional): ").to_s + config['local-dir'] = local_dir unless local_dir.empty? + upload_dir = ask("S3 upload direcotry (Optional): ").to_s + config['upload-dir'] = upload_dir unless upload_dir.empty? encrypt(config, 'secret_access_key') if agree("Encrypt secret access key? ") { |q| q.default = 'yes' } end end end end