Sha256: 128c4e97e81ab21f4c41f1f2831d21cdcc7f378259d76517b2b167b2ad152ac5

Contents?: true

Size: 794 Bytes

Versions: 120

Compression:

Stored size: 794 Bytes

Contents

task 'cfpropertylist' do
  if defined? Pkg::Config and Pkg::Config.project_root
    cfp_version = "2.2.7"
    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

120 entries across 120 versions & 1 rubygems

Version Path
puppet-4.10.7 tasks/cfpropertylist.rake
puppet-4.10.7-x86-mingw32 tasks/cfpropertylist.rake
puppet-4.10.7-x64-mingw32 tasks/cfpropertylist.rake
puppet-4.10.7-universal-darwin tasks/cfpropertylist.rake
puppet-4.10.6 tasks/cfpropertylist.rake
puppet-4.10.6-x86-mingw32 tasks/cfpropertylist.rake
puppet-4.10.6-x64-mingw32 tasks/cfpropertylist.rake
puppet-4.10.6-universal-darwin tasks/cfpropertylist.rake
puppet-4.10.5 tasks/cfpropertylist.rake
puppet-4.10.5-x86-mingw32 tasks/cfpropertylist.rake
puppet-4.10.5-x64-mingw32 tasks/cfpropertylist.rake
puppet-4.10.5-universal-darwin tasks/cfpropertylist.rake
puppet-4.10.4 tasks/cfpropertylist.rake
puppet-4.10.4-x86-mingw32 tasks/cfpropertylist.rake
puppet-4.10.4-x64-mingw32 tasks/cfpropertylist.rake
puppet-4.10.4-universal-darwin tasks/cfpropertylist.rake
puppet-4.10.1 tasks/cfpropertylist.rake
puppet-4.10.1-x86-mingw32 tasks/cfpropertylist.rake
puppet-4.10.1-x64-mingw32 tasks/cfpropertylist.rake
puppet-4.10.1-universal-darwin tasks/cfpropertylist.rake