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.1 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.1.travis.363.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.0 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.9.travis.362.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.9.travis.361.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.9.travis.360.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.9.travis.358.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.8 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.8.travis.356.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.7 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.7.travis.345.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.7.travis.341.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.7.travis.338.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.6 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.6.travis.337.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.6.travis.336.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.6.travis.333.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.6.travis.332.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.6.travis.330.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.5.6.travis.329.4 lib/travis/cli/setup/sauce_connect.rb