Skip to content
Sauce Labs rest interface scripts. Ruby version.
Ruby
Pull request Compare This branch is 2 commits ahead, 3 commits behind sgrove:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
gateway.rb
listtunnels.rb
saucerest.rb
tunnel.rb

README.md

SauceREST for Ruby

This is a Ruby library and some command line tools for interacting with the SauceREST API.

Requirements

For the scripts to run, you need to first install:

  • net-ssh
  • net-ssh-gateway
  • rest-client

Here are some useful command line tools:

tunnel.rb

This script is used to set up tunnel machines and open the tunnel from your side. Run it with "-h" to get the parameters required. Example run:

$ ruby tunnel.rb username api-key localhost 5000:80 exampleurl.com

This will make our computers masquerade exampleurl.com on port 80 through the tunnel you're about to open.

list_tunnels.rb

Lists all the available tunnels for the user account given. Example run:

$ ruby list_tunnels.rb username api-key

saucerest.rb

This is a basic library for working with the SauceREST API. If you plan to write scripts that work with SauceREST in Ruby, saucerest.rb might be a good place to start.

Something went wrong with that request. Please try again.