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.12.travis.529.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.12.travis.528.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.12.travis.524.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.12.travis.523.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.12.travis.521.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.12.travis.520.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.12.travis.517.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.11 lib/travis/cli/setup/opsworks.rb
travis-1.6.11.travis.516.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.11.travis.511.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.11.travis.510.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.11.travis.507.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.11.travis.503.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.10 lib/travis/cli/setup/opsworks.rb
travis-1.6.11.travis.502.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.9 lib/travis/cli/setup/opsworks.rb
travis-1.6.9.travis.484.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.9.travis.483.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.9.travis.479.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.9.travis.463.6 lib/travis/cli/setup/opsworks.rb