class Kontena::Plugin::Cloud::Organization::ShowCommand
Public Instance Methods
execute()
click to toggle source
# File lib/kontena/plugin/cloud/organization/show_command.rb, line 8 def execute org = cloud_client.get("/organizations/#{name}").dig('data', 'attributes') puts "#{org['name']}:" puts " email: #{org['email']}" puts " your role: #{org['owner'] ? 'owner' : 'member'}" puts " url: #{org['url'] || '-'}" puts " location: #{org['location'] || '-'}" end