Sha256: d7e9105e265f1e78c170debfcf91462d7e04ab06f05c5c8d03366f7c4750e301
Contents?: true
Size: 408 Bytes
Versions: 89
Compression:
Stored size: 408 Bytes
Contents
module Terraspace::Hooks module Dsl def before(*commands, **props) commands.each do |name| each_hook(:before, name, props) end end def after(*commands, **props) commands.each do |name| each_hook(:after, name, props) end end def each_hook(type, name, props={}) @hooks[type][name] ||= [] @hooks[type][name] << props end end end
Version data entries
89 entries across 89 versions & 1 rubygems