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

Version Path
packaging-0.122.3 tasks/load_extras.rake
packaging-0.122.2 tasks/load_extras.rake
packaging-0.122.1 tasks/load_extras.rake
packaging-0.122.0 tasks/load_extras.rake
packaging-0.121.0 tasks/load_extras.rake
packaging-0.120.0 tasks/load_extras.rake
packaging-0.118.0 tasks/load_extras.rake
packaging-0.117.0 tasks/load_extras.rake
packaging-0.116.0 tasks/load_extras.rake
packaging-0.115.0 tasks/load_extras.rake
packaging-0.114.0 tasks/load_extras.rake
packaging-0.113.0 tasks/load_extras.rake
packaging-0.112.0 tasks/load_extras.rake
packaging-0.111.0 tasks/load_extras.rake
packaging-0.110.1 tasks/load_extras.rake
packaging-0.110.0 tasks/load_extras.rake
packaging-0.109.7 tasks/load_extras.rake
packaging-0.109.6 tasks/load_extras.rake
packaging-0.109.5 tasks/load_extras.rake
packaging-0.109.4 tasks/load_extras.rake