Sha256: 48dd3337c3e6a39f028cc72c08883aef0ddccab47d4cbe6994d6eabfb049f66f
Contents?: true
Size: 980 Bytes
Versions: 35
Compression:
Stored size: 980 Bytes
Contents
# The pl:load_extras tasks is intended to load variables # from the extra yaml file downloaded by the pl:fetch task. # The goal is to be able to augment/override settings in the # source project's build_data.yaml and project_data.yaml with # Puppet Labs-specific data, rather than having to clutter the # generic tasks with data not generally useful outside the # PL Release team namespace :pl do # The equivalent to invoking this task is calling Pkg::Util::File.load_extras(temp_directory) task :load_extras, :tempdir do |t, args| unless ENV['PARAMS_FILE'] && ENV['PARAMS_FILE'] != '' tempdir = args.tempdir raise "pl:load_extras requires a directory containing extras data" if tempdir.nil? Pkg::Config.config_from_yaml("#{tempdir}/#{Pkg::Config.builder_data_file}") # Environment variables take precedence over those loaded from configs, # so we make sure that any we clobbered are reset. Pkg::Config.load_envvars end end end
Version data entries
35 entries across 35 versions & 1 rubygems