lib/vegas/runner.rb in quirkey-vegas-0.0.4 vs lib/vegas/runner.rb in quirkey-vegas-0.0.4.1
- old
+ new
@@ -44,11 +44,11 @@
check_for_running
find_port
write_url
begin
- launch! unless options[:skip_launch]
+ launch!
daemonize! unless options[:foreground]
run!
rescue RuntimeError => e
logger.warn "There was an error starting #{app_name}: #{e}"
exit
@@ -149,9 +149,10 @@
File.open(pid_file, 'w') {|f| f.write("#{Process.pid}") }
at_exit { delete_pid! }
end
def launch!(specific_url = nil)
+ return if options[:skip_launch]
cmd = WINDOWS ? "start" : "sleep 2 && open"
system "#{cmd} #{specific_url || url}"
end
def kill!