poise-monit 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/poise_monit/service_providers/monit.rb +2 -2
- data/lib/poise_monit/version.rb +1 -1
- data/test/spec/service_providers/monit_spec.rb +12 -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: 0569ac85b8e5379239efd1b5d18d372a30f25a42
|
|
4
|
+
data.tar.gz: d5734ab698444d5eb87151e1a67ac34b8cc86331
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a2b26696c0e3c754ea5b06b1024093cb013884814a11c5268bfd3557eab2e9beac9d2a633778126edc1f1562b96ba578e9f3601fedf02bf34d268d1ac5d6e1e
|
|
7
|
+
data.tar.gz: 8ab18e143ca411fbf02f0902b6542b84e9f437fa36d5a58ae928ab4f41b5db42dfe3b105f8608553732d26fa3e75d29103f5205c6e6894433edd05265d10f201
|
data/CHANGELOG.md
CHANGED
|
@@ -94,10 +94,10 @@ module PoiseMonit
|
|
|
94
94
|
_parent = service_resource.parent
|
|
95
95
|
_script_path = script_path
|
|
96
96
|
monit_config new_resource.service_name do
|
|
97
|
-
if
|
|
97
|
+
if _options['monit_template']
|
|
98
98
|
# If we have a template override, allow specifying a cookbook via
|
|
99
99
|
# "cookbook:template".
|
|
100
|
-
parts =
|
|
100
|
+
parts = _options['monit_template'].split(/:/, 2)
|
|
101
101
|
if parts.length == 2
|
|
102
102
|
source parts[1]
|
|
103
103
|
cookbook parts[0]
|
data/lib/poise_monit/version.rb
CHANGED
|
@@ -74,4 +74,16 @@ describe PoiseMonit::ServiceProviders::Monit do
|
|
|
74
74
|
|
|
75
75
|
it { is_expected.to_not be_a described_class }
|
|
76
76
|
end # /context with default provider
|
|
77
|
+
|
|
78
|
+
context 'with a monit_template option' do
|
|
79
|
+
recipe do
|
|
80
|
+
poise_service 'myapp' do
|
|
81
|
+
command 'myapp.rb'
|
|
82
|
+
provider :monit
|
|
83
|
+
options monit_template: 'mycook:mytemplate.erb'
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
it { is_expected.to create_monit_config('myapp').with(source: 'mytemplate.erb', cookbook: 'mycook') }
|
|
88
|
+
end # /context with a monit_template option
|
|
77
89
|
end
|