deputy 0.1.34 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/deputy.gemspec +1 -1
- data/lib/deputy.rb +6 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.35
|
data/deputy.gemspec
CHANGED
data/lib/deputy.rb
CHANGED
@@ -87,10 +87,12 @@ module Deputy
|
|
87
87
|
|
88
88
|
def self.install_cron
|
89
89
|
executable = `which deputy`.strip
|
90
|
-
`crontab -l
|
91
|
-
|
92
|
-
|
93
|
-
|
90
|
+
unless (`crontab -l`).include?(executable)
|
91
|
+
`crontab -l | { cat; echo "* * * * * #{executable} --run-plugins >> /tmp/deputy.log 2>&1"; } | crontab -`
|
92
|
+
if executable !~ %r{^/usr/}
|
93
|
+
puts "make deputy globally available! or e.g. calls from inside cronjobs do not know deputy"
|
94
|
+
puts "sudo ln -s #{executable} /usr/bin/deputy"
|
95
|
+
end
|
94
96
|
end
|
95
97
|
end
|
96
98
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deputy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 93
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 35
|
10
|
+
version: 0.1.35
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|