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.99.59 tasks/config.rake
packaging-0.99.58 tasks/config.rake
packaging-0.99.57 tasks/config.rake
packaging-0.99.56 tasks/config.rake
packaging-0.99.55 tasks/config.rake
packaging-0.99.54 tasks/config.rake
packaging-0.99.53 tasks/config.rake
packaging-0.99.52 tasks/config.rake
packaging-0.99.51 tasks/config.rake
packaging-0.99.50 tasks/config.rake
packaging-0.99.49 tasks/config.rake
packaging-0.99.48 tasks/config.rake
packaging-0.99.47 tasks/config.rake
packaging-0.99.46 tasks/config.rake
packaging-0.99.45 tasks/config.rake
packaging-0.99.44 tasks/config.rake
packaging-0.99.43 tasks/config.rake
packaging-0.99.42 tasks/config.rake
packaging-0.99.41 tasks/config.rake
packaging-0.99.40 tasks/config.rake