makesure 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/makesure +2 -0
- data/bin/makesure-runner +0 -1
- data/lib/makesure/cron.rb +1 -1
- data/lib/makesure/verify.rb +1 -0
- data/lib/makesure/version.rb +1 -1
- data/lib/makesure.rb +1 -0
- data/makesure.gemspec +1 -1
- metadata +3 -3
data/bin/makesure
CHANGED
@@ -62,6 +62,8 @@ Makesure.alert_options = {
|
|
62
62
|
|
63
63
|
Makesure.uid = "nobody" # what user should makesure run its tasks as (this can be set per system as well)
|
64
64
|
|
65
|
+
# Makesure.chdir = '/some/path...' # where should makesure run commands (defaults to File.dirname(Makesurefile))
|
66
|
+
|
65
67
|
# Tell makesure about your systems
|
66
68
|
Dir['systems/*.rb', 'lib/systems/*.rb'].each { |sys| load(sys) }
|
67
69
|
FILE
|
data/bin/makesure-runner
CHANGED
data/lib/makesure/cron.rb
CHANGED
@@ -20,7 +20,7 @@ module Makesure
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def build_crontab_output
|
23
|
-
chdir = File.dirname(Makesure.makesurefile)
|
23
|
+
chdir = Makesure.chdir || File.dirname(Makesure.makesurefile)
|
24
24
|
crontab = ""
|
25
25
|
crontab << "# Autogenerated by makesure: you probably don't want to edit this file\n"
|
26
26
|
Makesure.systems.each do |s|
|
data/lib/makesure/verify.rb
CHANGED
data/lib/makesure/version.rb
CHANGED
data/lib/makesure.rb
CHANGED
data/makesure.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Eric Waller
|
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
147
|
requirements:
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
hash:
|
150
|
+
hash: 963416349
|
151
151
|
segments:
|
152
152
|
- 0
|
153
153
|
version: "0"
|