Sha256: 8bf02edcaee7cf519f3d5dc11bc6b001f3e285c33433dcf8c840ef9871efc3a7

Contents?: true

Size: 675 Bytes

Versions: 53

Compression:

Stored size: 675 Bytes

Contents

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
            on("Migrate the database? ", config, 'migrate' => true)

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

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
travis-1.6.7.travis.434.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.431.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.428.9 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.427.9 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.426.8 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.425.8 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.422.4 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.420.4 lib/travis/cli/setup/opsworks.rb
travis-1.6.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.6.travis.419.4 lib/travis/cli/setup/opsworks.rb
travis-1.6.6.travis.417.4 lib/travis/cli/setup/opsworks.rb
travis-1.6.5 lib/travis/cli/setup/opsworks.rb
travis-1.6.4.travis.414.4 lib/travis/cli/setup/opsworks.rb