Sha256: 7cf0f383fa167d1843de63c60f8f5d6161964a1186a562f0502138fed39d30a9

Contents?: true

Size: 819 Bytes

Versions: 83

Compression:

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

  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

83 entries across 83 versions & 1 rubygems

Version Path
packaging-0.122.3 tasks/config.rake
packaging-0.122.2 tasks/config.rake
packaging-0.122.1 tasks/config.rake
packaging-0.122.0 tasks/config.rake
packaging-0.99.75 tasks/config.rake
packaging-0.99.74 tasks/config.rake
packaging-0.99.73 tasks/config.rake
packaging-0.99.72 tasks/config.rake
packaging-0.99.71 tasks/config.rake
packaging-0.99.70 tasks/config.rake
packaging-0.99.69 tasks/config.rake
packaging-0.99.68 tasks/config.rake
packaging-0.99.67 tasks/config.rake
packaging-0.99.66 tasks/config.rake
packaging-0.99.65 tasks/config.rake
packaging-0.99.64 tasks/config.rake
packaging-0.99.63 tasks/config.rake
packaging-0.99.62 tasks/config.rake
packaging-0.99.61 tasks/config.rake
packaging-0.99.60 tasks/config.rake