Class: AdminModule::Command::Config::Show
- Inherits:
-
Thor
- Object
- Thor
- AdminModule::Command::Config::Show
- Defined in:
- lib/admin_module/command/config.rb
Instance Method Summary collapse
Instance Method Details
#credentials(envname = nil) ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/admin_module/command/config.rb', line 112 def credentials(envname=nil) with_loaded_config do say "credentials:" output = [] AdminModule.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
80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/admin_module/command/config.rb', line 80 def envs with_loaded_config do say "Environments:" output = [] AdminModule.configuration.base_urls.each do |env, url| output << [env, url] end print_table output, indent: 8 end end |
#xmlmaps ⇒ Object
93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/admin_module/command/config.rb', line 93 def xmlmaps with_loaded_config do say "xmlmaps:" output = [] AdminModule.configuration.xmlmaps.each do |file, gdl| output << [file, gdl] end print_table output, indent: 8 end end |