Sha256: 351cdbcb506f668684b71474d4cb21106ff568160f6638b3342ac500fad133d2

Contents?: true

Size: 933 Bytes

Versions: 43

Compression:

Stored size: 933 Bytes

Contents

namespace :config do
  desc "print Pkg::Config values for this repo"
  task :print => 'pl:fetch' do
    Pkg::Util.filter_configs.each do |key, value|
      puts "#{key}: #{value}"
    end
  end

  desc "validate Pkg::Config values for this repo"
  task :validate do
    Pkg::Config.perform_validations
  end

  task :print_hosts => 'pl:fetch' do
    Pkg::Util.filter_configs('host').each do |key, value|
      puts "#{key}: #{value}"
    end
  end

  desc "print environment variables that can override build-data and build_defaults"
  task :environment_variables do
    Pkg::Params::ENV_VARS.each do |values|
      type = case values[:type]
      when :array
        "expects one or more space, comma, or semicolon delimited value; treated as an array"
      when :bool
        "expects a boolean value"
      end

      msg = "#{values[:var]}: #{values[:envvar]}"
      msg += " (#{type})" if type
      puts msg
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
packaging-0.121.0 tasks/config.rake
packaging-0.120.0 tasks/config.rake
packaging-0.118.0 tasks/config.rake
packaging-0.117.0 tasks/config.rake
packaging-0.116.0 tasks/config.rake
packaging-0.115.0 tasks/config.rake
packaging-0.114.0 tasks/config.rake
packaging-0.113.0 tasks/config.rake
packaging-0.112.0 tasks/config.rake
packaging-0.111.0 tasks/config.rake
packaging-0.110.1 tasks/config.rake
packaging-0.110.0 tasks/config.rake
packaging-0.109.7 tasks/config.rake
packaging-0.109.6 tasks/config.rake
packaging-0.109.5 tasks/config.rake
packaging-0.109.4 tasks/config.rake
packaging-0.109.3 tasks/config.rake
packaging-0.109.2 tasks/config.rake
packaging-0.109.1 tasks/config.rake
packaging-0.109.0 tasks/config.rake