Sha256: 435fd2d8ab8e1abbdadf3aee7397441063c8d5467ab5b2986fbe31476148035c
Contents?: true
Size: 545 Bytes
Versions: 22
Compression:
Stored size: 545 Bytes
Contents
module Kuroko2 module Workflow module Task class AutoSkipError < Base TRUE_OPTIONS = ['1', 'true', 'TRUE'] def execute token.context['AUTO_SKIP_ERROR'] = auto_skip_error? Kuroko2.logger.info("(token #{token.uuid}) AUTO_SKIP_ERROR: #{auto_skip_error?}") :next end def auto_skip_error? return @auto_skip_error if defined? @auto_skip_error @auto_skip_error = option ? TRUE_OPTIONS.include?(option.strip) : false end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems