lib/coderunner/class_methods.rb in coderunner-0.12.18 vs lib/coderunner/class_methods.rb in coderunner-0.12.19
- old
+ new
@@ -321,10 +321,10 @@
def self.launcher_directory
ENV['HOME'] + "/.coderunner/to_launch/#{ENV['CODE_RUNNER_LAUNCHER']}"
end
def self.start_launcher(refresh, max_queue, copts={})
#eputs "Starting launcher!"
- raise "Raise refresh is #{refresh}: it must be >= 0.1" if refresh < 0.1
+ raise "Raise refresh is #{refresh}: it must be >= 0.1" if refresh.to_f < 0.1
raise "Raise max_queue is #{max_queue}: it must be >= 5" if max_queue.to_i < 5
#raise "Launcher already running" if %x[ps -e -o cmd].split("\n").grep(/coderunner\s+launch/).size > 0
require 'thread'
tl = launcher_directory #SCRIPT_FOLDER + '/to_launch'
#exit unless Feedback.get_boolean( "Launch directory #{tl} already exists: it is suggested that you change the prefix by changing the environment variable CODE_RUNNER_LAUNCHER. Do you wish to continue (don't select yes unless you know what you are doing)?") if FileTest.exist? tl