Class: RoboPigeon::Jenkins::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/robopigeon/jenkins/client.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.enabledObject

Returns the value of attribute enabled.



8
9
10
# File 'lib/robopigeon/jenkins/client.rb', line 8

def enabled
  @enabled
end

.tokenObject

Returns the value of attribute token.



8
9
10
# File 'lib/robopigeon/jenkins/client.rb', line 8

def token
  @token
end

.urlObject

Returns the value of attribute url.



8
9
10
# File 'lib/robopigeon/jenkins/client.rb', line 8

def url
  @url
end

.userObject

Returns the value of attribute user.



8
9
10
# File 'lib/robopigeon/jenkins/client.rb', line 8

def user
  @user
end

Class Method Details

.clientObject



9
10
11
12
13
14
15
# File 'lib/robopigeon/jenkins/client.rb', line 9

def client
  @client ||= JenkinsApi::Client.new(
    server_url: url,
    username: user,
    password: token
  )
end