class Subordinate::Client
Public Class Methods
new(options = {})
click to toggle source
# File lib/subordinate/client.rb, line 11 def initialize(options = {}) options = Subordinate.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end
Public Instance Methods
api_endpoint()
click to toggle source
Builds the api endpoint to reach the Jenkins Server
@return [String] Endpoint - the api endpoint to the server
# File lib/subordinate/client.rb, line 22 def api_endpoint build_endpoint end
Private Instance Methods
build_endpoint()
click to toggle source
# File lib/subordinate/client.rb, line 40 def build_endpoint endpoint = ssl ? "https://" : "http://" endpoint << "#{self.subdomain}." if self.subdomain endpoint << "#{self.domain}" if self.domain endpoint << ":#{self.port}" if self.port endpoint end