Method: Autobuild.apply_post_install
- Defined in:
- lib/autobuild/config.rb
.apply_post_install(pkg, info) ⇒ Object
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/autobuild/config.rb', line 119 def self.apply_post_install(pkg, info) return unless info case info when Array args = info.dup tool = Autobuild.tool(args.shift) pkg.run 'post-install', tool, *args when Proc if info.arity == 1 info.call(pkg) else info.call end end end |