itamae-plugin-recipe-god 0.1.3 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/itamae/plugin/recipe/god/install.rb +6 -1
- data/lib/itamae/plugin/recipe/god/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20d75e8db624117dc098f1152bbac728c06abfc28b352d7b808180fd3e11cbc8
|
4
|
+
data.tar.gz: 174860937261a299efbbf4d8d8c0e8f5267a71d3d6c8c09746476dfb1ec30756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a271049b6b52314656904daecf6eaca653b5e9dd49c0c2dcb2ba22a78a47603dac9cc891e23eb427dafa9210e82aa6ba22c02ea9f17493655150af258148bf70
|
7
|
+
data.tar.gz: d3534f024059703907d20d50f43c142bb54ea25cf2361c27e533b14be5a0e9a10d0a4af3260330c35668890d62cc253436a8a4684ef0770acc5681af763dce65
|
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,6 +1,10 @@
|
|
1
1
|
alt_god = ENV['ALTERNATIVE_GOD']
|
2
2
|
god_gem =
|
3
|
-
case alt_god
|
3
|
+
case ::File.basename(alt_god.to_s)
|
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
|
+
}
|
4
8
|
when %r!\.gem\z! then # Ends with '.gem'
|
5
9
|
{ package: alt_god,
|
6
10
|
version: nil
|
@@ -18,6 +22,7 @@ god_gem =
|
|
18
22
|
gem_package 'god' do
|
19
23
|
package_name god_gem[:package]
|
20
24
|
version god_gem[:version]
|
25
|
+
options ['-N']
|
21
26
|
user 'root'
|
22
27
|
end
|
23
28
|
|
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.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- y-matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-17 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.
|
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
|