Class: JCF::CLI::Commands::CF::Quota

Inherits:
JCF::CLI::Command show all
Defined in:
lib/jcf/cli/commands/cf/quota.rb

Instance Method Summary collapse

Methods inherited from JCF::CLI::Command

inherited

Instance Method Details

#call(name: nil, **options) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/jcf/cli/commands/cf/quota.rb', line 15

def call(name: nil, **options)
  data = if name
           JCF::CF::Quota.find_by(name: name)
         else
           JCF::CF::Quota.all(org: options[:org])
         end
  out.puts formatter.format(data: JCF::CF::Base.format(data))
end