deputy 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/deputy +0 -1
- data/deputy.gemspec +1 -1
- data/lib/deputy.rb +2 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.17
|
data/bin/deputy
CHANGED
data/deputy.gemspec
CHANGED
data/lib/deputy.rb
CHANGED
@@ -81,7 +81,8 @@ module Deputy
|
|
81
81
|
VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
|
82
82
|
|
83
83
|
def self.install_cron
|
84
|
-
|
84
|
+
executable = File.expand_path("#{__FILE__}/../bin/deputy")
|
85
|
+
`crontab -l | { cat; echo "* * * * * #{executable} --run-plugins >> /tmp/deputy.log 2>&1"; } | crontab -`
|
85
86
|
end
|
86
87
|
|
87
88
|
def self.run_plugins
|