Class: Superbot::CLI::Cloud::Organization::ListCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Superbot::CLI::Cloud::Organization::ListCommand
- Includes:
- Superbot::Cloud::Validations
- Defined in:
- lib/superbot/cloud/cli/cloud/organization/list_command.rb
Instance Method Summary collapse
Methods included from Superbot::Cloud::Validations
Instance Method Details
#execute ⇒ Object
10 11 12 13 |
# File 'lib/superbot/cloud/cli/cloud/organization/list_command.rb', line 10 def execute require_login list_organizations end |
#list_organizations ⇒ Object
15 16 17 18 |
# File 'lib/superbot/cloud/cli/cloud/organization/list_command.rb', line 15 def list_organizations api_response = Superbot::Cloud::Api.request(:organization_list) puts(api_response.map { |org| org[:name] }) end |