Sha256: 423d4f76085a072d34356520d466b264a60e519023d7fa8133ba6370009eb47a
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
require 'uri' require 'stingray/control_api' class Stingray::ControlApi::Endpoint DEFAULT_AUTH = 'admin:admin' DEFAULT_ENDPOINT = "http://localhost:9090/soap" class << self def full_endpoint_uri u = URI.parse(endpoint_uri) u.user, u.password = auth u.to_s end def endpoint_uri ENV['STINGRAY_ENDPOINT'] || DEFAULT_ENDPOINT end def auth (ENV['STINGRAY_AUTH'] || DEFAULT_AUTH).split(/:/)[0,2] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stingray-exec-0.2.0 | lib/stingray/control_api/endpoint.rb |
stingray-exec-0.1.1 | lib/stingray/control_api/endpoint.rb |
stingray-exec-0.1.0 | lib/stingray/control_api/endpoint.rb |