class A2::Subcommand::Infra::ListOrganizations
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/a2/subcommands/infra.rb, line 51 def initialize super('list-orgs', takes_commands: false) end
Public Instance Methods
execute()
click to toggle source
# File lib/a2/subcommands/infra.rb, line 55 def execute puts JSON.pretty_generate(A2::Client.new(command_parser.data).list_all_organizations) end