Sha256: 22f22aaa7b5cca734bd80380dadf5053620f6d5344af0122419bd32f3f5e91fb
Contents?: true
Size: 632 Bytes
Versions: 43
Compression:
Stored size: 632 Bytes
Contents
module Dynflow # for cases the serialized action was renamed and it's not available # in the code base anymore. class Action::Missing < Dynflow::Action def self.generate(action_name) Class.new(self).tap do |klass| klass.singleton_class.send(:define_method, :name) do action_name end end end def plan(*args) raise StandardError, "This action is not meant to be planned" end def run raise StandardError, "This action is not meant to be run" end def finalize raise StandardError, "This action is not meant to be finalized" end end end
Version data entries
43 entries across 43 versions & 1 rubygems