poise-monit 1.5.0 → 1.5.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
  SHA1:
3
- metadata.gz: 3428e8e8bb8c8f1e1d92944526544f9127c5390c
4
- data.tar.gz: 7e416f1611d2bbfc56b1c0a667aeab2652ade403
3
+ metadata.gz: 0569ac85b8e5379239efd1b5d18d372a30f25a42
4
+ data.tar.gz: d5734ab698444d5eb87151e1a67ac34b8cc86331
5
5
  SHA512:
6
- metadata.gz: 6b893215424d741a5ce7a3b697e16bcf10f1f247ca2573c581403b402338097622b7b05ce763781abc4fd42e0c355aef1842bce79a4decbfec768e90f5a9f696
7
- data.tar.gz: a9f74101c31bc8bf3aadda6f9b5ac531f633428d3c6c217d6f98bff5cae6da1bd3674d25d3c3bc69a6267a9ac2eaef602ba2aca263771dd4cc9bf0806e095915
6
+ metadata.gz: 3a2b26696c0e3c754ea5b06b1024093cb013884814a11c5268bfd3557eab2e9beac9d2a633778126edc1f1562b96ba578e9f3601fedf02bf34d268d1ac5d6e1e
7
+ data.tar.gz: 8ab18e143ca411fbf02f0902b6542b84e9f437fa36d5a58ae928ab4f41b5db42dfe3b105f8608553732d26fa3e75d29103f5205c6e6894433edd05265d10f201
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Poise-Monit Changelog
2
2
 
3
+ ## v1.5.1
4
+
5
+ * Make the `monit_template` option from 1.5.0 actually work.
6
+
3
7
  ## v1.5.0
4
8
 
5
9
  * Allow overriding the template used for the `monit` service provider.
@@ -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 options['monit_template']
97
+ if _options['monit_template']
98
98
  # If we have a template override, allow specifying a cookbook via
99
99
  # "cookbook:template".
100
- parts = options['monit_template'].split(/:/, 2)
100
+ parts = _options['monit_template'].split(/:/, 2)
101
101
  if parts.length == 2
102
102
  source parts[1]
103
103
  cookbook parts[0]
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseMonit
19
- VERSION = '1.5.0'
19
+ VERSION = '1.5.1'
20
20
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-monit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz