Class: Propel::RemoteBuild
- Inherits:
-
Object
- Object
- Propel::RemoteBuild
- Defined in:
- lib/propel/remote_build.rb
Constant Summary collapse
- FAIL_PATTERNS =
{ :jenkins => /\(broken/, :team_city => /(?:has failed)$/, :ci_joe => /^failed$/ }
Instance Method Summary collapse
-
#initialize(status_url) ⇒ RemoteBuild
constructor
A new instance of RemoteBuild.
- #passing? ⇒ Boolean
Constructor Details
#initialize(status_url) ⇒ RemoteBuild
Returns a new instance of RemoteBuild.
8 9 10 |
# File 'lib/propel/remote_build.rb', line 8 def initialize(status_url) @status_url = status_url end |
Instance Method Details
#passing? ⇒ Boolean
18 19 20 |
# File 'lib/propel/remote_build.rb', line 18 def passing? !!FAIL_PATTERNS.values.detect{|pattern| most_recent_results =~ pattern }.nil? end |