Class: Travis::CLI::Setup::ElasticBeanstalk
- Defined in:
- lib/travis/cli/setup/elastic_beanstalk.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
description, #initialize, known_as?, #method_missing, normalized_name, service_name
Constructor Details
This class inherits a constructor from Travis::CLI::Setup::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Travis::CLI::Setup::Service
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/travis/cli/setup/elastic_beanstalk.rb', line 11 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 |