Class: Jenkins::Build::Hub::CiStatus
- Inherits:
-
Struct
- Object
- Struct
- Jenkins::Build::Hub::CiStatus
- Defined in:
- lib/jenkins/build/hub.rb
Constant Summary collapse
- MATCHER =
%r{^(?<status>[^:]+): (?<build_url>https?://.+)$}.freeze
Instance Attribute Summary collapse
-
#build ⇒ Object
Returns the value of attribute build.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#build ⇒ Object
Returns the value of attribute build
18 19 20 |
# File 'lib/jenkins/build/hub.rb', line 18 def build @build end |
#status ⇒ Object
Returns the value of attribute status
18 19 20 |
# File 'lib/jenkins/build/hub.rb', line 18 def status @status end |
Class Method Details
.parse(output) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/jenkins/build/hub.rb', line 22 def self.parse(output) hub = output.match(MATCHER) or return build = Jenkins::Build::Build.new(hub[:build_url]) [ hub[:status], build ] end |