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.47 tasks/load_extras.rake
packaging-0.99.46 tasks/load_extras.rake
packaging-0.99.45 tasks/load_extras.rake
packaging-0.99.44 tasks/load_extras.rake
packaging-0.99.43 tasks/load_extras.rake
packaging-0.99.42 tasks/load_extras.rake
packaging-0.99.41 tasks/load_extras.rake
packaging-0.99.40 tasks/load_extras.rake
packaging-0.99.39 tasks/load_extras.rake
packaging-0.99.38 tasks/load_extras.rake
packaging-0.99.37 tasks/load_extras.rake
packaging-0.99.36 tasks/load_extras.rake
packaging-0.99.35 tasks/load_extras.rake
packaging-0.99.34 tasks/load_extras.rake
packaging-0.99.33 tasks/load_extras.rake
packaging-0.99.32 tasks/load_extras.rake
packaging-0.99.31 tasks/load_extras.rake
packaging-0.99.30 tasks/load_extras.rake
packaging-0.99.29 tasks/load_extras.rake
packaging-0.99.28 tasks/load_extras.rake