lib/travis/cli/setup/artifacts.rb in travis-1.11.1 vs lib/travis/cli/setup/artifacts.rb in travis-1.12.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'travis/cli/setup'
module Travis
module CLI
class Setup
@@ -8,14 +10,14 @@
service_name 'artifacts'
def run
travis_config['addons'] ||= {}
configure 'artifacts', {}, travis_config['addons'] do |config|
- config['key'] = ask("Access key ID: ").to_s
- config['secret'] = ask("Secret access key: ") { |q| q.echo = "*" }.to_s
- config['bucket'] = ask("Bucket: ").to_s
- encrypt(config, 'key') if agree("Encrypt access key ID? ") { |q| q.default = 'yes' }
- encrypt(config, 'secret') if agree("Encrypt secret access key? ") { |q| q.default = 'yes' }
+ config['key'] = ask('Access key ID: ').to_s
+ config['secret'] = ask('Secret access key: ') { |q| q.echo = '*' }.to_s
+ config['bucket'] = ask('Bucket: ').to_s
+ encrypt(config, 'key') if agree('Encrypt access key ID? ') { |q| q.default = 'yes' }
+ encrypt(config, 'secret') if agree('Encrypt secret access key? ') { |q| q.default = 'yes' }
end
end
end
end
end