poise-service 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.kitchen.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/poise_service/service_mixin.rb +1 -0
- data/lib/poise_service/service_providers/base.rb +1 -0
- data/lib/poise_service/version.rb +1 -1
- data/test/spec/service_mixin_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5235bb5459804ba6a2328658f145bab7951640ee
|
4
|
+
data.tar.gz: '009a5daf57894d6dfd4c1f99fe6c5e1367108e05'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd1f516d247cbc2eb83e3e2af0d05dde25532017f2d9cbd54ecf7864eb41a02bca8b9b353953517a4df882ee29d3f7822ca8c6e825258f0d111cc99cdc3b8d4a
|
7
|
+
data.tar.gz: b7b1b4d1bb9b9f27b0a36cc322b30307ed4a744c4b7328b0afa34d5f27269cfabc2ad3de65cc074cba022a3c9a1a865e523d2899897abac51891d320beb32ad5
|
data/.kitchen.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -167,6 +167,7 @@ module PoiseService
|
|
167
167
|
def service_resource
|
168
168
|
@service_resource ||= PoiseService::Resources::PoiseService::Resource.new(new_resource.name, run_context).tap do |r|
|
169
169
|
# Set some defaults.
|
170
|
+
r.declared_type = :poise_service
|
170
171
|
r.enclosing_provider = self
|
171
172
|
r.source_line = new_resource.source_line
|
172
173
|
r.service_name(new_resource.service_name)
|
@@ -141,6 +141,7 @@ module PoiseService
|
|
141
141
|
# restart actions.
|
142
142
|
def service_resource
|
143
143
|
@service_resource ||= Chef::Resource::Service.new(new_resource.service_name, run_context).tap do |r|
|
144
|
+
r.declared_type = :service
|
144
145
|
r.enclosing_provider = self
|
145
146
|
r.source_line = new_resource.source_line
|
146
147
|
r.supports(status: true, restart: true, reload: true)
|
@@ -150,6 +150,7 @@ describe PoiseService::ServiceMixin::Provider do
|
|
150
150
|
allow(new_resource).to receive(:service_name).and_return('test')
|
151
151
|
fake_poise_service = double('poise_service')
|
152
152
|
expect(PoiseService::Resources::PoiseService::Resource).to receive(:new).with('test', nil).and_return(fake_poise_service)
|
153
|
+
expect(fake_poise_service).to receive(:declared_type=).with(:poise_service)
|
153
154
|
expect(fake_poise_service).to receive(:enclosing_provider=).with(subject)
|
154
155
|
expect(fake_poise_service).to receive(:source_line=).with('path.rb:1')
|
155
156
|
expect(fake_poise_service).to receive(:service_name).with('test')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poise-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noah Kantrowitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|