require 'travis/cli/setup' module Travis module CLI class Setup class S3 < Service description "automatic pushing to S3" 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 encrypt(config, 'secret_access_key') if agree("Encrypt secret access key? ") { |q| q.default = 'yes' } end end end end end end