Class: Propel::RemoteBuild

Inherits:
Object
  • Object
show all
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

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

Returns:

  • (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