Class: PortalModule::Command::Config::Del
- Inherits:
-
Thor
- Object
- Thor
- PortalModule::Command::Config::Del
- Defined in:
- lib/portal_module/command/config.rb
Overview
Del commands
Instance Method Summary collapse
Instance Method Details
#credentials(envname) ⇒ Object
174 175 176 177 178 179 180 |
# File 'lib/portal_module/command/config.rb', line 174 def credentials(envname) with_loaded_config do if PortalModule.configuration.credentials.key?(envname.to_sym) PortalModule.configuration.credentials.delete(envname.to_sym) end end end |
#env(envname) ⇒ Object
154 155 156 157 158 159 160 161 162 |
# File 'lib/portal_module/command/config.rb', line 154 def env(envname) with_loaded_config do if PortalModule.configuration.base_urls.key?(envname.to_sym) PortalModule.configuration.base_urls.delete(envname.to_sym) end end credentials(envname) end |
#org(orgname) ⇒ Object
165 166 167 168 169 170 171 |
# File 'lib/portal_module/command/config.rb', line 165 def org(orgname) with_loaded_config do if PortalModule.configuration.orgs.key?(orgname) PortalModule.configuration.orgs.delete(orgname) end end end |