class Pm::Operation

Very basic operation implementation

Attributes

config[R]
context[R]
status[R]

Public Class Methods

new(config, context) click to toggle source
# File lib/flow.rb, line 88
def initialize(config, context)
  @config = config
  @context = context

  extend_by_tag
end

Public Instance Methods

complete() click to toggle source
# File lib/flow.rb, line 99
def complete
  perform if respond_to?(:perform)
  @status = 'complete'
end
ready?() click to toggle source
# File lib/flow.rb, line 104
def ready?
  status.nil?
end
tag() click to toggle source
# File lib/flow.rb, line 95
def tag
  @config['tag']
end