Module: SonarQube
- Defined in:
- lib/sonarqube-client/client.rb,
lib/sonarqube-client.rb,
lib/sonarqube-client/issues.rb,
lib/sonarqube-client/logger.rb,
lib/sonarqube-client/version.rb,
lib/sonarqube-client/projects.rb,
lib/sonarqube-client/timemachine.rb
Overview
Copyright © 2016 Dimitrios Dimas <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Defined Under Namespace
Modules: Client, Issues, Projects, TimeMachine Classes: Logger, SonarQube
Constant Summary collapse
- VERSION_INFO =
[0, 0, 0, 'develop']
- VERSION =
VERSION_INFO.map(&:to_s).join('.')
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.version ⇒ Object
21 22 23 |
# File 'lib/sonarqube-client/version.rb', line 21 def self.version VERSION end |
Instance Method Details
#sonarqube(server_url, username = '', password = '') ⇒ Object
76 77 78 79 80 81 82 |
# File 'lib/sonarqube-client.rb', line 76 def sonarqube(server_url, username='', password='') if [username, password].reduce(:+) == '' proc {|endpoint| JSON.parse((RestClient::Resource.new server_url + endpoint).get)}.curry else proc {|endpoint| JSON.parse((RestClient::Resource.new server_url + endpoint, username, password).get)}.curry end end |