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.3.travis.388.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.387.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.386.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.385.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.384.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.381.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.379.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.377.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.376.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.374.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.3.travis.373.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.371.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.370.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.369.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.368.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.367.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.366.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.365.4 lib/travis/cli/setup/sauce_connect.rb
travis-1.6.2.travis.364.4 lib/travis/cli/setup/sauce_connect.rb