Sha256: 84801eafa2c2ef28980639311661f41b77687a90792a15cbae39dcdab73e7075

Contents?: true

Size: 794 Bytes

Versions: 492

Compression:

Stored size: 794 Bytes

Contents

task 'cfpropertylist' do
  if defined? Pkg::Config and Pkg::Config.project_root
    cfp_version = "2.3.5"
    libdir = File.join(Pkg::Config.project_root, "lib")
    source = "https://github.com/ckruse/CFPropertyList/archive/cfpropertylist-#{cfp_version}.tar.gz"
    target_dir = Pkg::Util::File.mktemp
    target = File.join(target_dir, "cfpropertylist")
    Pkg::Util::Net.fetch_uri(source, target)
    Pkg::Util::File.untar_into(target, target_dir, "--strip-components 1")
    mv(Dir.glob("#{File.join(target_dir, "lib")}/cfpropertylist*"), libdir)
    mv(Dir.glob("#{target_dir}/{LICENSE,README,THANKS}"), File.join(libdir, "cfpropertylist"))
  else
    warn "It looks like the packaging tasks have not been loaded. You'll need to `rake package:bootstrap` before using this task"
  end
end

Version data entries

492 entries across 492 versions & 1 rubygems

Version Path
puppet-8.3.0 tasks/cfpropertylist.rake
puppet-8.3.0-x86-mingw32 tasks/cfpropertylist.rake
puppet-8.3.0-x64-mingw32 tasks/cfpropertylist.rake
puppet-8.3.0-universal-darwin tasks/cfpropertylist.rake
puppet-8.6.0 tasks/cfpropertylist.rake
puppet-8.6.0-x86-mingw32 tasks/cfpropertylist.rake
puppet-8.6.0-x64-mingw32 tasks/cfpropertylist.rake
puppet-8.6.0-universal-darwin tasks/cfpropertylist.rake
puppet-7.30.0 tasks/cfpropertylist.rake
puppet-7.30.0-x86-mingw32 tasks/cfpropertylist.rake
puppet-7.30.0-x64-mingw32 tasks/cfpropertylist.rake
puppet-7.30.0-universal-darwin tasks/cfpropertylist.rake
puppet-8.5.1 tasks/cfpropertylist.rake
puppet-8.5.1-x86-mingw32 tasks/cfpropertylist.rake
puppet-8.5.1-x64-mingw32 tasks/cfpropertylist.rake
puppet-8.5.1-universal-darwin tasks/cfpropertylist.rake
puppet-7.29.1 tasks/cfpropertylist.rake
puppet-7.29.1-x86-mingw32 tasks/cfpropertylist.rake
puppet-7.29.1-x64-mingw32 tasks/cfpropertylist.rake
puppet-7.29.1-universal-darwin tasks/cfpropertylist.rake