Module Moped::Executable
In: lib/moped/executable.rb

Provides common behavior around executing a thread local stack safely.

@since 2.0.0

Methods

Public Instance methods

Given the name of a thread local stack, ensure that execution happens by starting and ending the stack execution cleanly.

@example Ensure execution of a pipeline.

  execute(:pipeline) do
    yield(self)
  end

@param [ Symbol ] name The name of the stack.

@return [ Object ] The result of the yield.

@since 2.0.0

Are we currently executing a stack on the thread?

@example Are we executing a pipeline?

  executing?(:pipeline)

@param [ Symbol ] name The name of the stack.

@return [ true, false ] If we are executing the stack.

@since 2.0.0

[Validate]