Class: JCF::CLI::Commands::CF::ServicePlans
- Inherits:
-
JCF::CLI::Command
- Object
- Dry::CLI::Command
- JCF::CLI::Command
- JCF::CLI::Commands::CF::ServicePlans
- Defined in:
- lib/jcf/cli/commands/cf/service_plans.rb
Instance Method Summary collapse
Methods inherited from JCF::CLI::Command
Instance Method Details
#call(name: nil, **options) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/jcf/cli/commands/cf/service_plans.rb', line 15 def call(name: nil, **) data = if name JCF::CF::ServicePlan.find_by(name: name) else JCF::CF::ServicePlan.all(organization_guids: [:org]) end out.puts formatter.format(data: JCF::CF::Base.format(data)) end |