Module: BasicoOctokit::Helpers::ClientHelper
- Included in:
- Facade::Issues
- Defined in:
- lib/basico-octokit/helpers/client_helper.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
4 5 6 |
# File 'lib/basico-octokit/helpers/client_helper.rb', line 4 def client BasicoOctokit::Facade::Client.instance.get(configatron.basico_git_token) end |
#request_with_log(method, repo, params) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/basico-octokit/helpers/client_helper.rb', line 8 def request_with_log(method, repo, params) puts "Calling [#{method}] from [#{repo}] with token #{configatron.basico_git_token} and params [#{params}] ".light_green response = client.send(method.to_sym,repo, params) puts "Received response : #{response.to_json}.".light_yellow response end |