Class: CFAdmin::Guid

Inherits:
CF::CLI
  • Object
show all
Defined in:
lib/admin-cf-plugin/guid.rb

Instance Method Summary collapse

Instance Method Details

#guidObject



13
14
15
16
17
18
19
20
21
# File 'lib/admin-cf-plugin/guid.rb', line 13

def guid
  type = expand_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

#preconditionObject



5
6
7
# File 'lib/admin-cf-plugin/guid.rb', line 5

def precondition
  check_target
end