lib/minke/helpers/helper.rb in minke-1.0.0 vs lib/minke/helpers/helper.rb in minke-1.0.1
- old
+ new
@@ -10,11 +10,11 @@
end
Dir.mkdir directory unless Dir.exist? to
FileUtils.cp from, to
end
-
+
##
# invoke a rake task
def invoke_task task
Rake::Task[task].invoke
end
@@ -35,10 +35,10 @@
abort message
end
##
# waits until a 200 response is received from the given url
- def wait_for_HTTPOK url, count, successes = 0
+ def wait_for_HTTPOK url, count, successes = 3
begin
response = RestClient.send("get", url)
rescue
end