Sha256: e95c2d1e6d2f1965262e3922096bfb043a807ab1e83abf9706e15adf2025edf8

Contents?: true

Size: 884 Bytes

Versions: 92

Compression:

Stored size: 884 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
  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

92 entries across 92 versions & 2 rubygems

Version Path
packaging-0.99.27 tasks/load_extras.rake
packaging-0.99.26 tasks/load_extras.rake
packaging-0.99.25 tasks/load_extras.rake
packaging-0.99.24 tasks/load_extras.rake
packaging-0.99.23 tasks/load_extras.rake
packaging-0.99.22 tasks/load_extras.rake
packaging-0.99.21 tasks/load_extras.rake
packaging-0.99.20 tasks/load_extras.rake
packaging-0.99.19 tasks/load_extras.rake
packaging-0.99.18 tasks/load_extras.rake
packaging-0.99.17 tasks/load_extras.rake
packaging-0.99.16 tasks/load_extras.rake
packaging-0.99.15 tasks/load_extras.rake
packaging-0.99.14 tasks/load_extras.rake
packaging-0.99.13 tasks/load_extras.rake
packaging-0.99.12 tasks/load_extras.rake
packaging-0.99.11 tasks/load_extras.rake
packaging-0.99.10.pre.dev1 tasks/load_extras.rake
packaging-0.99.10.2.gfa4c366 tasks/load_extras.rake
packaging-0.99.10 tasks/load_extras.rake