omf_rc_shm 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWI0MmIwNjMzMWJjMDA3OGJmMWQ1MTZlYWZkZmRkYTcxNjEzNjk3MQ==
4
+ MGJmYzJiN2IzNjQ4YzFjMzdjNDNiYzM3YWE2NWI0YmFiMmIxY2Q1NA==
5
5
  data.tar.gz: !binary |-
6
- MWJlYjQ3MzFhMWE5ZWIyNGJhMWQzZDAwNzQ3YmNiMDJjMTBhZDkxMg==
6
+ ZTM3ZTI1ZTZlMjIyODg0ZmE2MTg0ZGRjZjExZjBjMGU3ZDEzNTQwYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjEyMzM2NDllODM3ZWE3NzZjMjAxYTZkOWM2YWQ2NzY1ZDM0NGY2N2M3MDI4
10
- NWY2NmE1NGM1YzcxYmMyMGI1NTk5Y2QwNDhhZWU2ZWQ0ZTQzOGQ5Y2ZkMmFj
11
- ZmVlYTMzYTI1OWM3MGRlYWQwMDNjNDQxODFjYmI2Mjc2MjEwODg=
9
+ MTYwZTJkYzRmYTI0NmQ1MzEyYjA4YTMyMGVmZjA2YzNmMWU2OTJjMmI1Mjdl
10
+ ODA3YjBmMTQwYzAyZWE5ZmFhYzI2YmNmMzgzZjIwM2E5ZGFjNGMxMzdlYjJi
11
+ MjA2ZGIzYjA2ZWUzOGM0ODg1YjI0NTRkYjM5NTJiNThiMWFmOTI=
12
12
  data.tar.gz: !binary |-
13
- YTdhZWNmY2JjZmE3ZjRkMjA2MzI4YTYyNzk3NzhmYTIzYzdiNWI3YzM2MWY1
14
- NzEyYmUwNTA4Njk0ZjQ4MTgxYTc1MDY0ODJlNTcyZTQ1Mzc1ODY3NmMzODI0
15
- NmNjYTY5YTg1MGNiNzBlNTllZDI2NDc3MmU0NTRhYzljNWI1MTg=
13
+ MThkNzZmMGY5MDIwY2M1NjQwNzAxY2RmMDdiMzViYmIzYzZjZGVmNDg4ODRl
14
+ MDY3OGRkYzQ3ZDkxYWU0NjFmMzgxMTI1OWY0ZWE3YmJhNDJiMTIxNWY1NjM0
15
+ YzA5YzQ4MmY5NDgwZTc1NDk0ZmFmOTE2YmY5MjRmYmQ2MzU4Nzk=
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- cmd, stdout_f, stderr_f, pid_f, timeout, kill_sig = *ARGV
3
+ stdout_f, stderr_f, pid_f, timeout, kill_sig, *cmd = *ARGV
4
4
 
5
- pid = Process.spawn(cmd, out: [stdout_f, "a"], err: [stderr_f, "a"])
5
+ pid = Process.spawn(cmd.join(" "), out: [stdout_f, "a"], err: [stderr_f, "a"])
6
6
 
7
7
  `echo #{pid} >> #{pid_f}`
8
8
 
@@ -327,7 +327,7 @@ module OmfRc::ResourceProxy::ScheduledApplication
327
327
 
328
328
  app_wrapper_path = File.expand_path("#{File.dirname(__FILE__)}/../../../bin/cronjob_app_wrapper")
329
329
 
330
- cmd = "#{app_wrapper_path} #{res.build_command_line} #{stdout_file} #{stderr_file} #{pid_file} #{res.property.timeout} #{res.property.timeout_kill_signal}"
330
+ cmd = "#{app_wrapper_path} #{stdout_file} #{stderr_file} #{pid_file} #{res.property.timeout} #{res.property.timeout_kill_signal} #{res.build_command_line}"
331
331
 
332
332
  info "Adding cron job for '#{res.property.app_id}' with schedule '#{res.property.schedule}' and command '#{cmd}'"
333
333
 
@@ -1,3 +1,3 @@
1
1
  module OmfRcShm
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_rc_shm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - NICTA