Class: Subordinate::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, Build, Executor, Job, Load, People, Queue, System, View, Connection, Request
Defined in:
lib/subordinate/client.rb,
lib/subordinate/client/job.rb,
lib/subordinate/client/load.rb,
lib/subordinate/client/view.rb,
lib/subordinate/client/queue.rb,
lib/subordinate/client/build.rb,
lib/subordinate/client/system.rb,
lib/subordinate/client/people.rb,
lib/subordinate/client/executor.rb

Defined Under Namespace

Modules: Build, Executor, Job, Load, People, Queue, System, View

Instance Method Summary collapse

Methods included from Executor

#build_executor

Methods included from View

#add_job_to_view, #all_views, #remove_job_from_view, #view

Methods included from People

#people

Methods included from Load

#load_statistics

Methods included from Queue

#build_queue

Methods included from Build

#build, #build_timestamp, #console_output_for_build

Methods included from System

#cancel_quiet_down, #quiet_down, #restart, #root, #safe_restart

Methods included from Job

#build_job, #build_job_with_params, #delete_job, #disable_job, #enable_job, #job

Methods included from Request

#delete, #get, #last_response, #post, #put

Methods included from Connection

#connection

Methods included from Authentication

#authenticated?

Constructor Details

#initialize(options = {}) ⇒ Client



11
12
13
14
15
16
17
# 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

Instance Method Details

#api_endpointString

Builds the api endpoint to reach the Jenkins Server



22
23
24
# File 'lib/subordinate/client.rb', line 22

def api_endpoint
  build_endpoint
end