Method: Circle::CLI::Project#request
- Defined in:
- lib/circle/cli/project.rb
#request(klass, action, *args) ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/circle/cli/project.rb', line 35 def request(klass, action, *args) response = klass.send(action, repo.user_name, repo.project, *args) if response.success? response.body else abort "The following error occurred: #{response.body['message']}" end end |