foreman-export-initd 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman/export/initd_monit.rb +1 -1
- data/lib/initd/monit_config.rb +3 -2
- data/templates/monit_config.erb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc3bc0210636eedbd3612b5b8b222cb49a81875b
|
4
|
+
data.tar.gz: 09aa4794a9a276e0bc39c7c82b95ed24d41faee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f274eb244561dcb9faa1ee2ce223f32dd3110f00e5ea1d59bc3f174f3e1b777e3c3a3368d56b751eca2a67377b91ce028b1157e843ac8905948838aa3db177f1
|
7
|
+
data.tar.gz: 5c3d772eff8626e645e7d5691c1f329af283746804b42dbe1019a9ee4c920989f9fe4e2d37aa25d5b7b5b90cb0c14583ef904e8546cf64af8ec21dee7c0e2b11
|
@@ -20,7 +20,7 @@ class Foreman::Export::InitdMonit < Foreman::Export::Base
|
|
20
20
|
concurrency = engine.formation[name]
|
21
21
|
if concurrency > 0
|
22
22
|
say 'Warning: Initd exporter ignores concurrency > 1' if concurrency > 1
|
23
|
-
contents = Initd::MonitConfig.new(path).content
|
23
|
+
contents = Initd::MonitConfig.new(app, path).content
|
24
24
|
write_file(path, contents)
|
25
25
|
File.chmod(0755, path)
|
26
26
|
exported.push path.to_s
|
data/lib/initd/monit_config.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
class Initd::MonitConfig
|
2
2
|
|
3
|
-
attr_reader :path
|
3
|
+
attr_reader :app, :path
|
4
4
|
|
5
5
|
def templates_dir
|
6
6
|
Pathname.new(__FILE__).dirname.dirname.dirname.join('templates')
|
7
7
|
end
|
8
8
|
|
9
|
-
def initialize(path)
|
9
|
+
def initialize(app, path)
|
10
|
+
@app = app
|
10
11
|
@path = path
|
11
12
|
end
|
12
13
|
|
data/templates/monit_config.erb
CHANGED