Class: PortalModule::Command::Config::Show
- Inherits:
-
Thor
- Object
- Thor
- PortalModule::Command::Config::Show
- Defined in:
- lib/portal_module/command/config.rb
Overview
Show commands
Instance Method Summary collapse
Instance Method Details
#credentials(envname = nil) ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/portal_module/command/config.rb', line 115 def credentials(envname=nil) with_loaded_config do say "credentials:" output = [] PortalModule.configuration.credentials.each do |env, cred| if envname.nil? || env == envname.to_sym output << [env, cred.first, cred.last] end end print_table output, indent: 8 end end |
#envs ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/portal_module/command/config.rb', line 83 def envs with_loaded_config do say "Environments:" output = [] PortalModule.configuration.base_urls.each do |env, url| output << [env, url] end print_table output, indent: 8 end end |
#orgs ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/portal_module/command/config.rb', line 96 def orgs with_loaded_config do say "Org Units:" output = [] PortalModule.configuration.orgs.each do |org, id| output << [org, id] end print_table output, indent: 8 end end |