Permalink
Browse files

Comments

  • Loading branch information...
1 parent fb8a550 commit 3750251214b8eb9965cea750a2febffcc6cedbcf @winton committed Apr 18, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/with_pid.rb
View
@@ -2,6 +2,9 @@
require 'erb'
def with_pid(options)
+ # Path to bash script
+ bash_path = options[:tmp] + "/" + options[:name]
+
# Add pid_dir option
options[:pid_dir] = File.dirname(options[:pid])
@@ -10,7 +13,6 @@ def with_pid(options)
template = File.expand_path(template)
template = File.read(template)
template = ERB.new(template).result(binding)
- bash_path = options[:tmp] + "/" + options[:name]
# Write bash script to tmp
FileUtils.mkdir_p(options[:tmp])

0 comments on commit 3750251

Please sign in to comment.