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.9.travis.462.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.9.travis.461.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.9.travis.458.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.457.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.456.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.455.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.454.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.453.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.452.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.451.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.450.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.449.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.8.travis.447.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.446.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.7 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.445.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.443.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.442.6 lib/travis/cli/setup/opsworks.rb
travis-1.6.7.travis.441.6 lib/travis/cli/setup/opsworks.rb