Method: Cf::Production#delete
- Defined in:
- lib/cf/cli/production.rb
#delete ⇒ Object
323 324 325 326 327 328 329 330 331 332 333 334 |
# File 'lib/cf/cli/production.rb', line 323 def delete set_target_uri(false) set_api_key CF.account_name = CF::Account.info['name'] run_title = [:run_title].parameterize deleted_run = CF::Run.destroy(run_title) if deleted_run['error'].present? say("Error: #{deleted_run['error']['message']}", :red) and exit(1) end say("Run Deleted Successfully entitled: \"#{deleted_run['title']}\"!", :green) end |