itamae-plugin-recipe-god 0.1.2 → 0.2.1

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
  SHA256:
3
- metadata.gz: c97e9d5a0b72707e806ad1923a4fe4bdcadd30a4b08ccd14f95ffa1e4a27fb25
4
- data.tar.gz: d73fd2d3fb575cfff4c99901c6bbb6e14af84022634272814c2542f624527de4
3
+ metadata.gz: '09500b3debe883c23022f23a0a05864516701583b0ec76bb4f0b0f1ca0479e21'
4
+ data.tar.gz: 796d1fb0297697010373921031ea7bb1ec88d003faea0406fa0e4a4f8c2a4f62
5
5
  SHA512:
6
- metadata.gz: 9d9ba3181b739bf263d145453751fe7e2a62ad5c03801e0740341c918dbfd355ad6b8fd4e1a2b54670cd94f8b80b03108bd27fe41fa1be67f81056723ea6efa7
7
- data.tar.gz: 5b46cec3b0e2ab1e1e270b9a7c1bcc74d0cc20cfdbb6a68fb0569965cab9251f7f9f6c1a168a64617fc16d7065e58d6d1a035e3322fb97ea02f484d563a662b4
6
+ metadata.gz: 9220702daffd02dad288c21730326b2950d6e708db107917baf11dac01c7461196b9817e405dcff27bc7f8b0541b67c388bd6c1a45c755467e43585c6d3954d4
7
+ data.tar.gz: 336871e0512eea3e194150f619fd9fb047b9be5c4148fea6d0edd12971b3e07c6ef3c0d98d32dfe9cb2534cc3c6412093ef8f13c3588e31a3d50240d10c84d02
data/README.md CHANGED
@@ -45,6 +45,14 @@ This recipe will install god and generate the following files.
45
45
  Systemd Unit File.
46
46
  If CentOS7, configure for systemd.
47
47
 
48
+ By default, this recipe will install "god" gem from rubygems.org.
49
+ You can install another god by specifying "ALTERNATIVE_GOD" environment variables.
50
+
51
+ ALTERNATIVE_GOD="gem name"
52
+ ALTERNATIVE_GOD="path/to/gemfile"
53
+
54
+ When you specify gem name as "ALTERNATIVE_GOD" environment variables, then you can specify the version as "ALTERNATIVE_GOD_VERSION" environment varialbes.
55
+
48
56
  ## Development
49
57
 
50
58
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,28 @@
1
+ alt_god = ENV['ALTERNATIVE_GOD']
2
+ god_gem =
3
+ case ::File.basename(alt_god)
4
+ when %r!\Agod-.gem\z! then # If package_name starts with 'god-' and ends with '.gem', then version can be extracted.
5
+ { package: alt_god,
6
+ version: ::File.basename(alt_god)[/god-(.+)\.gem/, 1]
7
+ }
8
+ when %r!\.gem\z! then # Ends with '.gem'
9
+ { package: alt_god,
10
+ version: nil
11
+ }
12
+ when %r!\A\S+\z! then # Matches characters without white spaces
13
+ { package: alt_god,
14
+ version: ENV['ALTERNATIVE_GOD_VERSION']
15
+ }
16
+ else
17
+ { package: 'god',
18
+ version: '0.13.7'
19
+ }
20
+ end
21
+
1
22
  gem_package 'god' do
2
- version '0.13.7'
23
+ package_name god_gem[:package]
24
+ version god_gem[:version]
25
+ options ['-N']
3
26
  user 'root'
4
27
  end
5
28
 
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module God
5
- VERSION = "0.1.2"
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-god
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.0.6
119
+ rubygems_version: 3.3.16
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: itamae recipe for god process monitoring framework