lib/deputy.rb in deputy-0.1.39 vs lib/deputy.rb in deputy-0.1.40
- old
+ new
@@ -84,9 +84,10 @@
end
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
+ DEFAULT_VALUE = 'OK'
def self.install_cron
executable = `which deputy`.strip
unless (`crontab -l`).include?(executable)
`crontab -l | { cat; echo "* * * * * #{executable} --run-plugins >> /tmp/deputy.log 2>&1"; } | crontab -`
\ No newline at end of file