Sha256: 6646838886b706148fdcc3ff7d8bcb62e71bf6ed4703977f332de851635019e3

Contents?: true

Size: 657 Bytes

Versions: 119

Compression:

Stored size: 657 Bytes

Contents

require 'travis/cli/setup'

module Travis
  module CLI
    class Setup
      class SauceConnect < Service
        description "Sauce Connet addon for Sauce Labs integration"
        service_name "sauce_connect"

        def run
          travis_config['addons'] ||= {}
          configure 'sauce_connect', {}, travis_config['addons'] do |config|
            config['username']   = ask("Sauce Labs user: ").to_s
            config['access_key'] = ask("Sauce Labs access key: ") { |q| q.echo = "*" }.to_s
            encrypt(config, 'access_key') if agree("Encrypt access key? ") { |q| q.default = 'yes' }
          end
        end
      end
    end
  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

Version Path
travis-1.6.12.travis.521.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.12.travis.520.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.12.travis.517.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.11 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.11.travis.516.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.11.travis.511.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.11.travis.510.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.11.travis.507.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.11.travis.503.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.10 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.11.travis.502.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9.travis.484.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9.travis.483.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9.travis.479.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9.travis.463.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9.travis.462.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9.travis.461.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.9.travis.458.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.8 lib/travis/cli/setup/sauce_connect.rb