Sha256: 3e26abdfd62327aa468c32cb2dfb07199ad30ca4cb6c78646f6bf662f59fcc65

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 KB

Contents

##
# These tasks are just wrappers for the build objects capabilities, exposed
# for our debugging purposes. This file is prepended with `z_` to ensure it is
# loaded last, so that any variable manipulations that occur in the rake tasks
# happen prior to printing (although ideally all variables have been set after
# loading `20_setupextrasvars.rake`).
#
namespace :pl do
  ##
  # Utility rake task that will dump all current build parameters and variables
  # to a yaml file to a temporary location and print the path. Given the
  # environment variable 'OUTPUT_DIR', output file at 'OUTPUT_DIR'. The
  # environment variable TASK sets the task instance variable of the build to the
  # supplied args, allowing us to use this file for later builds.
  #
  desc "Write all package build parameters to a yaml file, pass OUTPUT_DIR to specify outut location"
  task :write_build_params do
    if ENV['TASK']
      task_args = ENV['TASK'].split(' ')
      @build.task = { :task => task_args[0], :args => task_args[1..-1] }
    end
    @build.params_to_yaml(ENV['OUTPUT_DIR'])
  end

  ##
  # Print all build parameters to STDOUT.
  #
  desc "Print all package build parameters"
  task :print_build_params do
    @build.print_params
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-2.7.25 ext/packaging/tasks/z_data_dump.rake
puppet-2.7.24 ext/packaging/tasks/z_data_dump.rake
puppet-2.7.23 ext/packaging/tasks/z_data_dump.rake
puppet-2.7.22 ext/packaging/tasks/z_data_dump.rake
puppet-2.7.21 ext/packaging/tasks/z_data_dump.rake