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.39 tasks/config.rake
packaging-0.99.38 tasks/config.rake
packaging-0.99.37 tasks/config.rake
packaging-0.99.36 tasks/config.rake
packaging-0.99.35 tasks/config.rake
packaging-0.99.34 tasks/config.rake
packaging-0.99.33 tasks/config.rake
packaging-0.99.32 tasks/config.rake
packaging-0.99.31 tasks/config.rake
packaging-0.99.30 tasks/config.rake
packaging-0.99.29 tasks/config.rake
packaging-0.99.28 tasks/config.rake
packaging-0.99.27 tasks/config.rake
packaging-0.99.26 tasks/config.rake
packaging-0.99.25 tasks/config.rake
packaging-0.99.24 tasks/config.rake
packaging-0.99.23 tasks/config.rake
packaging-0.99.22 tasks/config.rake
packaging-0.99.21 tasks/config.rake
packaging-0.99.20 tasks/config.rake