Class: Status::Jenkins
- Inherits:
-
Object
- Object
- Status::Jenkins
- Defined in:
- lib/status/jenkins.rb
Instance Method Summary collapse
-
#initialize(branch, sha = nil) ⇒ Jenkins
constructor
A new instance of Jenkins.
- #pass? ⇒ Boolean
- #state ⇒ Object
- #target_url ⇒ Object
Constructor Details
#initialize(branch, sha = nil) ⇒ Jenkins
Returns a new instance of Jenkins.
6 7 8 9 |
# File 'lib/status/jenkins.rb', line 6 def initialize(branch, sha=nil) @branch = branch.gsub(/\//, "_") @sha = sha end |
Instance Method Details
#pass? ⇒ Boolean
19 20 21 |
# File 'lib/status/jenkins.rb', line 19 def pass? status == "success" end |
#state ⇒ Object
15 16 17 |
# File 'lib/status/jenkins.rb', line 15 def state status end |