coderunner 0.15.10 → 0.15.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coderunner.gemspec +2 -2
- data/lib/coderunner/system_modules/launcher.rb +11 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eae74e13da43cbdc34d182a9d3b780005b90984
|
4
|
+
data.tar.gz: 4934af8baada72248a7d240247bb679dd6699841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c300c860f72dad4b5e76de69819a8198813699a2bc9ad7aec3cf4b75c017de94f5d15c4ad172b37957c1b84455d8cbbca3ca538ac53c17bb075d4416e270ded
|
7
|
+
data.tar.gz: 00c8481231ca54e4958421fc7c058bcaa06cde068c2c37006fc7a5de873f6fcf9d09627b19f8331e2f2e2670b487f0e4b28aaf7a97517df239bf9ae6b0da3db7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.11
|
data/coderunner.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: coderunner 0.15.
|
5
|
+
# stub: coderunner 0.15.11 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "coderunner"
|
10
|
-
s.version = "0.15.
|
10
|
+
s.version = "0.15.11"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
@@ -11,21 +11,21 @@ class CodeRunner
|
|
11
11
|
launcher_prefix and launcher_prefix.size > 0
|
12
12
|
end
|
13
13
|
def queue_status_launcher
|
14
|
-
%x[cat #{
|
15
|
-
%x[cat #{
|
14
|
+
%x[cat #{CodeRunner.launcher_directory}/queue_status.txt | grep sh] +
|
15
|
+
%x[cat #{CodeRunner.launcher_directory}/queue_status2.txt | grep sh]
|
16
16
|
end
|
17
17
|
def execute_launcher
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
launch_id = "#{Time.now.to_i}#{$$}"
|
19
|
+
fname = "#{CodeRunner.launcher_directory}/#{launch_id}"
|
20
|
+
File.open(fname + '.start', 'w'){|file| file.print "cd #{Dir.pwd};", run_command, "\n"}
|
21
|
+
sleep 2 until FileTest.exist? fname + '.pid'
|
22
|
+
pid = File.read(fname + '.pid').to_i
|
23
|
+
FileUtils.rm fname + '.pid'
|
24
|
+
return pid
|
25
25
|
end
|
26
26
|
def cancel_job_launcher
|
27
|
-
|
28
|
-
|
27
|
+
fname = CodeRunner.launcher_directory + "/#{$$}.stop"
|
28
|
+
File.open(fname, 'w'){|file| file.puts "\n"}
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|