Sha256: a52cbc8619f500d4d45753ca2358eb399444fc4411fe7c60da1a8bf2090d11b8
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
require "json" module SauceWhisk class Sauce extend RestRequestBuilder def self.auth_details {} end def self.resource "info" end def self.service_status JSON.parse((get "status"), :symbolize_names => true) rescue end def self.platforms (force = false) unless force @platforms ||= JSON.parse(get "browsers/webdriver") else @platforms = JSON.parse(get "browsers/webdriver") end end def self.total_job_count Integer(get "counter") end def self.operational? service_status[:service_operational] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sauce_whisk-0.0.5 | lib/sauce_whisk/info.rb |