lib/capistrano/ghostinspector/api.rb in capistrano-ghostinspector-1.0.1 vs lib/capistrano/ghostinspector/api.rb in capistrano-ghostinspector-1.0.2

- old
+ new

@@ -41,16 +41,20 @@ return data end + def shouldWaitForResults() + return @rollback == false && @ga_enabled == false; + end + private def includeResults() # Determine if we should get results to # check for any failed tests - if (@rollback == false && @ga_enabled == false) + if (shouldWaitForResults()) immediate = "&immediate=1" else immediate = "" puts "* * * Gathering results. This could take a few minutes. * * *" end