60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# File 'lib/trailblazer/pro/session.rb', line 60
def trace_operations(operation_hash)
decisions =
if operation_hash == :all
Trailblazer::Operation.extend(Trailblazer::Pro::Operation::Call)
raise "implement me"
elsif operation_hash.is_a?(Hash)
operation_hash.collect do |operation, strategy| operation.extend(Trailblazer::Pro::Operation::Call)
strategy = Trailblazer::Pro::Trace::Wtf if strategy === true
->(activity, *) { activity == operation ? [strategy, {}] : false }
end
else
[]
end
Trace::Decision.new(decisions)
end
|