7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/smith/workflow/split_step_persistence/execution_authorization_issuance.rb', line 7
def authorize_prepared_step_execution!
authorization = nil
handed_off = false
authorization = ExecutionAuthorizationIssuance
.instance_method(:interrupt_safe_prepared_step_authorization)
.bind_call(self)
handed_off = true
authorization
ensure
unless handed_off
ExecutionLifecycle
.instance_method(:release_failed_execution_authorization!)
.bind_call(self, authorization)
end
end
|