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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02cd1a5bb1fb449717ef09d05e0190d22a754295
4
- data.tar.gz: 0e2bffa7e5e489769a08f681a7165b48f6b5ad8d
3
+ metadata.gz: dc3bc0210636eedbd3612b5b8b222cb49a81875b
4
+ data.tar.gz: 09aa4794a9a276e0bc39c7c82b95ed24d41faee6
5
5
  SHA512:
6
- metadata.gz: 357a0c11fe450bc4be4ef5708513e050fcc2c85c8fd82b1c63c0a1137cc4cc2bc47221148a3900abfa1af66683950bb3132b8269d4627d965355185ab566656c
7
- data.tar.gz: 308184c037473cb9c1425d0fc71d696ba9998055d3d67413c3931add7c7f71c62abc61f9b1c1223ed1c0e7b49e14e59cfee0ebc2b75bd06087718b1ccfda0aad
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
@@ -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
 
@@ -1,5 +1,6 @@
1
1
  # Autogenerated by foreman
2
2
  check process <%= name %> with pidfile <%= pidfile %>
3
+ group <%= app %>
3
4
  start program = "/etc/init.d/<%= name %> start"
4
5
  stop program = "/etc/init.d/<%= name %> stop"
5
6
  if 25 restarts within 50 cycles then timeout
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-export-initd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Durka