Method: Trailblazer::Activity::DSL::Linear::Patch.customize

Defined in:
lib/trailblazer/activity/dsl/linear/feature/patch.rb

.customize(activity, options:) ⇒ Object

Currently, this is called from the Subprocess() helper.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/trailblazer/activity/dsl/linear/feature/patch.rb', line 6

def self.customize(activity, options:)
  options = options.is_a?(Proc) ?
    {[] => options} : # hash-wrapping with empty path, for patching given activity itself
    options

  options.each do |path, patch|
    activity = call(activity, path, patch) # TODO: test if multiple patches works!
  end

  activity
end