Class: CFAdmin::Guid
- Inherits:
-
CF::CLI
- Object
- CF::CLI
- CFAdmin::Guid
- Defined in:
- lib/admin-cf-plugin/guid.rb
Instance Method Summary collapse
Instance Method Details
#guid ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/admin-cf-plugin/guid.rb', line 13 def guid type = (input[:type]) name = input[:name] _, res = client.base.rest_client.request("GET", api_path(type, name)) puts "Listing #{type} for '#{name}'...\n\n" puts_response(res[:body]) end |
#precondition ⇒ Object
5 6 7 |
# File 'lib/admin-cf-plugin/guid.rb', line 5 def precondition check_target end |