Class: A2::Subcommand::Infra::ListOrganizations
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- A2::Subcommand::Infra::ListOrganizations
- Defined in:
- lib/a2/subcommands/infra.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ ListOrganizations
constructor
A new instance of ListOrganizations.
Constructor Details
#initialize ⇒ ListOrganizations
Returns a new instance of ListOrganizations.
51 52 53 |
# File 'lib/a2/subcommands/infra.rb', line 51 def initialize super('list-orgs', takes_commands: false) end |
Instance Method Details
#execute ⇒ Object
55 56 57 |
# File 'lib/a2/subcommands/infra.rb', line 55 def execute puts JSON.pretty_generate(A2::Client.new(command_parser.data).list_all_organizations) end |