Sha256: fa0ba68d21e23fe49f6d1f3afa7e50bedbd8a91d38f8ab9054b9a8bffe0eb710
Contents?: true
Size: 755 Bytes
Versions: 19
Compression:
Stored size: 755 Bytes
Contents
require "shelly/cli/command" module Shelly module CLI class Organization < Command namespace :organization include Helpers before_hook :logged_in?, :only => [:list] desc "list", "Lists organizations" def list user = Shelly::User.new organizations = user.organizations say "You have access to the following organizations and clouds:", :green say_new_line organizations.each do |organization| say organization.name, :green if organization.apps.present? print_table(apps_table(organization.apps), :ident => 2, :colwidth => 35) else print_wrapped "No clouds", :ident => 2 end end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems