Class: Shipit::ReleaseStatus

Inherits:
Record
  • Object
show all
Includes:
DeferredTouch
Defined in:
app/models/shipit/release_status.rb

Constant Summary collapse

MAX_DESCRIPTION_LENGTH =
140
STATES =
%w[pending success failure error].freeze

Constants included from DeferredTouch

DeferredTouch::CACHE_KEY, DeferredTouch::SET_KEY, DeferredTouch::THROTTLE_TTL, DeferredTouch::TMP_KEY

Instance Method Summary collapse

Methods included from DeferredTouch

touch_now!

Methods inherited from Record

serializer_class

Instance Method Details

#create_status_on_github!Object



20
21
22
23
24
# File 'app/models/shipit/release_status.rb', line 20

def create_status_on_github!
  return true if github_id?

  update!(github_id: create_status_on_github.id)
end