lib/mirage/util.rb in mirage-1.1.0 vs lib/mirage/util.rb in mirage-1.2.0
- old
+ new
@@ -1,10 +1,10 @@
require 'optparse'
module Mirage
module Util
- def wait_until time=30
+ def wait_until time=45
start_time = Time.now
until Time.now >= start_time + time
sleep 0.1
return if yield
end
@@ -26,15 +26,18 @@
end
begin
opt_parser.parse args
rescue
- puts "mirage start|stop [OPTIONS]"
puts opt_parser
exit 1
end
options
+ end
+
+ def windows?
+ ENV['OS'] == 'Windows_NT'
end
end
end
\ No newline at end of file