class Codestatus::BuildStatus
Constants
- ERROR
Defined in GitHub
- FAILURE
- PENDING
- STATUSES
Statuses defined in Bitbucket are mapped into GitHub's status
STOPPED => ERROR FAILED => FAILURE INPROGRESS => PENDING SUCCESSFUL => SUCCESS
- SUCCESS
- UNDEFINED
Attributes
sha[R]
status[R]
Public Class Methods
new(sha:, status:)
click to toggle source
# File lib/codestatus/build_status.rb, line 24 def initialize(sha:, status:) @sha = sha if STATUSES.include?(status.to_s) @status = status.to_s else @status = UNDEFINED end end