module Puppet::Acceptance::GitUtils - mcollective version 2.12.5

# module Puppet::Acceptance::GitUtils

### Public Instance Methods

build_giturl(project_name, git_fork = nil, git_server = nil) click to toggle source

       # File acceptance/lib/puppet/acceptance/git_utils.rb
     9 def build_giturl(project_name, git_fork = nil, git_server = nil)
    10   git_fork ||= lookup_in_env('FORK', project_name, 'puppetlabs')
    11   git_server ||= lookup_in_env('GIT_SERVER', project_name, 'github.com')
    12   repo = (git_server == 'github.com') ?
    13     "#{git_fork}/#{project_name}.git" :
    14     "#{git_fork}-#{project_name}.git"
    15   "git://#{git_server}/#{repo}"
    16 end

lookup_in_env(env_variable_name, project_name, default) click to toggle source

      # File acceptance/lib/puppet/acceptance/git_utils.rb
    4 def lookup_in_env(env_variable_name, project_name, default)
    5   project_specific_name = "#{project_name.upcase.gsub("-","_")}_#{env_variable_name}"
    6   ENV[project_specific_name] || ENV[env_variable_name] || default
    7 end