Class: ControlplaneApiCli
- Inherits:
-
Object
- Object
- ControlplaneApiCli
- Defined in:
- lib/core/controlplane_api_cli.rb
Instance Method Summary collapse
Instance Method Details
#call(url, method:) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/core/controlplane_api_cli.rb', line 4 def call(url, method:) response = `cpln rest #{method} #{url} -o json` raise(response) unless $CHILD_STATUS.success? JSON.parse(response) end |