Sha256: ec623dc1d6ee0ab99fe95f562a0e0d66970a0c6c4124c38127d5f8e357c29b8b
Contents?: true
Size: 566 Bytes
Versions: 46
Compression:
Stored size: 566 Bytes
Contents
module PkgForge ## # Add patch methods to Forge class Forge attr_writer :patches Contract None => ArrayOf[String] def patches @patches ||= [] end private Contract None => nil def patch_source! patches.each do |patch| run_local "patch -d #{tmpdir(:build)} -p1 < patches/#{patch}" end nil end end module DSL ## # Add patch methods to Forge DSL class Forge Contract String => nil def patch(file) @forge.patches << file nil end end end end
Version data entries
46 entries across 46 versions & 1 rubygems