Sha256: 40386f63354600c4f8072d39f6f3e9d735e7aea13b4e27b7f6992940855c6994

Contents?: true

Size: 935 Bytes

Versions: 6

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true

require 'travis/cli/setup'

module Travis
  module CLI
    class Setup
      class ElasticBeanstalk < Service
        description 'deployment to AWS Elastic Beanstalk'

        def run
          deploy 'elasticbeanstalk' 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['region'] = ask('Elastic Beanstalk region: ') { |q| q.default = 'us-east-1' }.to_s
            config['app'] = ask('Elastic Beanstalk application name: ').to_s
            config['env'] = ask('Elastic Beanstalk environment to update: ').to_s
            config['bucket_name'] = ask('Bucket name to upload app to: ').to_s

            encrypt(config, 'secret_access_key') if agree('Encrypt secret access key? ') { |q| q.default = 'yes' }
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
travis-1.14.0 lib/travis/cli/setup/elastic_beanstalk.rb
travis-1.13.3 lib/travis/cli/setup/elastic_beanstalk.rb
travis-1.13.2 lib/travis/cli/setup/elastic_beanstalk.rb
travis-1.13.1 lib/travis/cli/setup/elastic_beanstalk.rb
travis-1.13.0 lib/travis/cli/setup/elastic_beanstalk.rb
travis-1.12.0 lib/travis/cli/setup/elastic_beanstalk.rb