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

Version Path
dynflow-0.8.23 lib/dynflow/action/missing.rb
dynflow-0.8.22 lib/dynflow/action/missing.rb
dynflow-0.8.21 lib/dynflow/action/missing.rb
dynflow-0.8.20 lib/dynflow/action/missing.rb
dynflow-0.8.19 lib/dynflow/action/missing.rb
dynflow-0.8.18 lib/dynflow/action/missing.rb
dynflow-0.8.17 lib/dynflow/action/missing.rb
dynflow-0.8.16 lib/dynflow/action/missing.rb
dynflow-0.8.15 lib/dynflow/action/missing.rb
dynflow-0.8.14 lib/dynflow/action/missing.rb
dynflow-0.8.13 lib/dynflow/action/missing.rb
dynflow-0.8.12 lib/dynflow/action/missing.rb
dynflow-0.8.11 lib/dynflow/action/missing.rb
dynflow-0.8.10 lib/dynflow/action/missing.rb
dynflow-0.8.9 lib/dynflow/action/missing.rb
dynflow-0.8.8 lib/dynflow/action/missing.rb
dynflow-0.8.7 lib/dynflow/action/missing.rb
dynflow-0.8.6 lib/dynflow/action/missing.rb
dynflow-0.8.5 lib/dynflow/action/missing.rb
dynflow-0.8.4 lib/dynflow/action/missing.rb