Method: RHC::ContextHelpers#from_local_git
- Defined in:
- lib/rhc/context_helper.rb
#from_local_git(defaults, arg) ⇒ Object
102 103 104 105 106 107 108 109 110 |
# File 'lib/rhc/context_helper.rb', line 102 def from_local_git(defaults, arg) @local_git_config ||= { :application_id => git_config_get('pbox.app-id').presence, :app => git_config_get('pbox.app-name').presence, :namespace => git_config_get('pbox.domain-name').presence, } defaults[arg] ||= @local_git_config[arg] unless @local_git_config[arg].nil? @local_git_config end |