Sha256: 7d5c85a8e0f1360939c64bf7b717fd88ceeffbe9327f4424e2a8e9c22398a7ca
Contents?: true
Size: 748 Bytes
Versions: 75
Compression:
Stored size: 748 Bytes
Contents
module PkgForge ## # Add configure flag options to Forge class Forge attr_writer :configure_flags Contract None => HashOf[Symbol => Maybe[String]] def configure_flags @configure_flags ||= {} end end module DSL ## # Add configure flag options to Forge DSL class Forge Contract HashOf[Symbol => Maybe[String]] => nil def configure_flags(value) @forge.configure_flags = value nil end end ## # Add configure flag options to Build DSL class Build Contract None => ArrayOf[String] def configure_flag_strings @forge.configure_flags.map do |flag, value| "--#{flag}#{'=' if value}#{value}" end end end end end
Version data entries
75 entries across 75 versions & 1 rubygems