Sha256: 0709191f938cc4f6f94c5303972bdccce2b7eadfb70cca2e8d03ace1d48d7495

Contents?: true

Size: 715 Bytes

Versions: 6

Compression:

Stored size: 715 Bytes

Contents

# frozen_string_literal: true

require 'travis/cli/setup'

module Travis
  module CLI
    class Setup
      class OpsWorks < Service
        description 'deployment to OpsWorks'

        def run
          deploy 'opsworks' 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['app-id'] = ask('App ID: ').to_s
            config['migrate'] = true if agree('Migrate the Database? ') { |q| q.default = 'no' }

            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/opsworks.rb
travis-1.13.3 lib/travis/cli/setup/opsworks.rb
travis-1.13.2 lib/travis/cli/setup/opsworks.rb
travis-1.13.1 lib/travis/cli/setup/opsworks.rb
travis-1.13.0 lib/travis/cli/setup/opsworks.rb
travis-1.12.0 lib/travis/cli/setup/opsworks.rb