lib/deputy.rb in deputy-0.1.16 vs lib/deputy.rb in deputy-0.1.17

- old
+ new

@@ -79,10 +79,11 @@ module Deputy START_MINUTE = (Time.now.to_i + 30) / 60 # we could start at 58..02 seconds -> always in middle of minute VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip def self.install_cron - `crontab -l | { cat; echo "* * * * * deputy --run-plugins 2>&1 >> /tmp/deputy.log"; } | crontab -` + executable = File.expand_path("#{__FILE__}/../bin/deputy") + `crontab -l | { cat; echo "* * * * * #{executable} --run-plugins >> /tmp/deputy.log 2>&1"; } | crontab -` end def self.run_plugins content = get("/plugins.rb") \ No newline at end of file