Class: AmsLayout::Config::Show
- Inherits:
-
Thor
- Object
- Thor
- AmsLayout::Config::Show
- Defined in:
- lib/ams_layout/cli/config.rb
Instance Method Summary collapse
Instance Method Details
#credentials(envname = nil) ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/ams_layout/cli/config.rb', line 86 def credentials(envname=nil) with_loaded_config do say "credentials:" output = [] AmsLayout.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
67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/ams_layout/cli/config.rb', line 67 def envs with_loaded_config do say "Environments:" output = [] AmsLayout.configuration.base_urls.each do |env, url| output << [env, url] end print_table output, indent: 8 end end |