Sha256: cd75c4034400c3b99e80b0ed2571d9476f512bee71c3730f1bfd033d6f74fab7

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

#!/usr/bin/env ruby

if ARGV.any?
  api_key, api_secret = ARGV.first.split(':')
else
  
  p "This utility will help you set up your system to use TestingBot's infrastructure."
  p "Once you have entered your API key and secret you will be ready to use our grid"
  p "You can get these credentials from the TestingBot dashboard: https://testingbot.com/members"

  p "Please enter your testingbot API KEY:"
  api_key = gets.chomp
  p "Please enter your testingbot API SECRET:"
  api_secret = gets.chomp
end

File.open(File.expand_path("~/.testingbot"), 'w') {|f| f.write("#{api_key}:#{api_secret}") }

p "Your system is now ready to use TestingBot's grid infrastructure."

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
testingbot-0.2.2 bin/testingbot
testingbot-0.2.1 bin/testingbot
testingbot-0.2.0 bin/testingbot