class SonarQube::SonarQube
@@logger=SonarQube::Logger::Logger.new
Public Class Methods
new(server_url, username='', password='')
click to toggle source
# File lib/sonarqube-client.rb, line 40 def initialize server_url, username='', password='' if [username, password].reduce(:+) == '' @connector=RestClient::Resource.new(server_url) else @connector=RestClient::Resource.new(server_url, username, password) end end
Public Instance Methods
issues()
click to toggle source
Returns an issues object, can also be used to invoke issues methods without having to explicitly initialize/store an object
@example issues = SonarQube.issues or if we don't want a persistent object: @example puts \"the list with all the issues is: \#\\{SonarQube.issues.get\}\" @return [TimeMachine::TimeMachine]
# File lib/sonarqube-client.rb, line 71 def issues Issues::Issues.new(@connector) end
projects()
click to toggle source
Returns a projects object, can also be used to invoke projects methods without having to explicitly initialize/store an object
@example my_proj = SonarQube.projects or if we don't want a persistent object: @example puts \"available projects are: \#\\{SonarQube.projects.list\}\" @return [TimeMachine::TimeMachine]
# File lib/sonarqube-client.rb, line 62 def projects Projects::Projects.new(@connector) end
timemachine()
click to toggle source
Returns a timemachine object, can also be used to invoke timemachine methods without having to explicitly initialize/store an object
@example my_tm = SonarQube.timemachine or if we don't want a persistent object: @example puts \"coverage for my project is: \#\\{SonarQube.timemachine.get(my_awesome_project, coverage)\}\" @return [TimeMachine::TimeMachine]
# File lib/sonarqube-client.rb, line 53 def timemachine TimeMachine::TimeMachine.new(@connector) end