lib/beaker/dsl/install_utils/foss_utils.rb
# lookup project-specific git environment variables
# PROJECT_VAR or VAR otherwise return the default
#
# @!visibility private
lookup project-specific git environment variables
PROJECT_VAR or VAR otherwise return the default
lookup project - specific git environment variables PROJECT_VAR or VAR otherwise return the default
def lookup_in_env(env_variable_name, project_name=nil, default=nil)
          env_variable_name     = "#{env_variable_name.upcase.gsub('-','_')}"
          project_specific_name = "#{project_name.upcase.gsub('-','_')}_#{env_variable_name}" if project_name
          project_name && ENV[project_specific_name] || ENV[env_variable_name] || default
        end
def lookup_in_env ( env_variable_name , project_name = nil , default = nil ) env_variable_name = "#{env_variable_name.upcase.gsub('-','_')}" project_specific_name = "#{project_name.upcase.gsub('-','_')}_#{env_variable_name}" if project_name project_name && ENV [ project_specific_name ] || ENV [ env_variable_name ] || default end
lookup project-specific git environment variables
PROJECT_VAR or VAR otherwise return the default
lookup project - specific git environment variables PROJECT_VAR or VAR otherwise return the default
env_variable_name
<not_specific>
project_name
<not_specific>
default
<not_specific>
!visibility
None