class BackOps::Operation

Public Instance Methods

first_action() click to toggle source

Instance Methods =====================================================

# File lib/back_ops/operation.rb, line 32
def first_action
  self.actions.
    where(back_ops_actions: { branch: 'main' }).
    order(order: :asc).
    limit(1).
    first
end
get(field) click to toggle source
# File lib/back_ops/operation.rb, line 40
def get(field)
  globals[field.to_s]
end
set(field, value) click to toggle source
# File lib/back_ops/operation.rb, line 44
def set(field, value)
  globals[field.to_s] = value
  save!
end