Class: JCF::CLI::Commands::CF::ServiceBrokers
Instance Method Summary
collapse
Methods included from JCF::CF
curl, do_curl, sanitize_url
inherited
Instance Method Details
#call(name: nil, **options) ⇒ Object
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/jcf/cli/commands/cf/service_brokers.rb', line 17
def call(name: nil, **options)
if name
out.puts formatter.format(data: JCF::CF::ServiceBroker.find_by(name: name))
else
data = ServiceBroker.all(space_guids: options[:space])
out.puts formatter.format(data: JCF::CF::Base.format(data))
end
end
|