puppetmodule-stdlib 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Modulefile +1 -1
- data/README.markdown +6 -0
- data/lib/puppet/type/anchor.rb +5 -0
- data/spec/classes/anchor_spec.rb +32 -0
- metadata +14 -9
data/CHANGELOG
CHANGED
data/Modulefile
CHANGED
data/README.markdown
CHANGED
@@ -40,6 +40,12 @@ Enterprise 1.2.
|
|
40
40
|
|
41
41
|
# Compatibility #
|
42
42
|
|
43
|
+
Puppet Versions | < 2.6 | 2.6 | 2.7 | 3.x |
|
44
|
+
:---------------|:-----:|:---:|:---:|:----:
|
45
|
+
**stdlib 2.x** | no | **yes** | **yes** | no
|
46
|
+
**stdlib 3.x** | no | no | **yes** | **yes**
|
47
|
+
**stdlib 4.x** | no | no | no | **yes**
|
48
|
+
|
43
49
|
The stdlib module does not work with Puppet versions released prior to Puppet
|
44
50
|
2.6.0.
|
45
51
|
|
data/lib/puppet/type/anchor.rb
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'puppet'
|
2
|
+
require 'rspec-puppet'
|
3
|
+
|
4
|
+
describe "anchorrefresh" do
|
5
|
+
let(:node) { 'testhost.example.com' }
|
6
|
+
let :pre_condition do
|
7
|
+
<<-ANCHORCLASS
|
8
|
+
class anchored {
|
9
|
+
anchor { 'anchored::begin': }
|
10
|
+
~> anchor { 'anchored::end': }
|
11
|
+
}
|
12
|
+
|
13
|
+
class anchorrefresh {
|
14
|
+
notify { 'first': }
|
15
|
+
~> class { 'anchored': }
|
16
|
+
~> anchor { 'final': }
|
17
|
+
}
|
18
|
+
ANCHORCLASS
|
19
|
+
end
|
20
|
+
|
21
|
+
def apply_catalog_and_return_exec_rsrc
|
22
|
+
catalog = subject.to_ral
|
23
|
+
transaction = catalog.apply
|
24
|
+
transaction.resource_status("Anchor[final]")
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'propagates events through the anchored class' do
|
28
|
+
resource = apply_catalog_and_return_exec_rsrc
|
29
|
+
|
30
|
+
expect(resource.restarted).to eq(true)
|
31
|
+
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppetmodule-stdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,10 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description:
|
15
|
-
|
14
|
+
description: This Gem format of the stdlib module is intended to make it easier for
|
15
|
+
_module authors_ to resolve dependencies using a Gemfile when running automated
|
16
|
+
testing jobs like Travis or Jenkins. The recommended best practice for installation
|
17
|
+
by end users is to use the `puppet module install` command to install stdlib from
|
18
|
+
the [Puppet Forge](http://forge.puppetlabs.com/puppetlabs/stdlib).
|
19
|
+
email: puppet-dev@puppetlabs.com
|
16
20
|
executables: []
|
17
21
|
extensions: []
|
18
22
|
extra_rdoc_files: []
|
@@ -124,6 +128,7 @@ files:
|
|
124
128
|
- tests/has_ip_address.pp
|
125
129
|
- tests/has_ip_network.pp
|
126
130
|
- tests/init.pp
|
131
|
+
- spec/classes/anchor_spec.rb
|
127
132
|
- spec/functions/defined_with_params_spec.rb
|
128
133
|
- spec/functions/ensure_packages_spec.rb
|
129
134
|
- spec/functions/ensure_resource_spec.rb
|
@@ -216,12 +221,12 @@ files:
|
|
216
221
|
- spec/unit/puppet/type/anchor_spec.rb
|
217
222
|
- spec/unit/puppet/type/file_line_spec.rb
|
218
223
|
- spec/watchr.rb
|
219
|
-
homepage:
|
224
|
+
homepage: http://forge.puppetlabs.com/puppetlabs/stdlib
|
220
225
|
licenses: []
|
221
226
|
post_install_message:
|
222
227
|
rdoc_options:
|
223
228
|
- --title
|
224
|
-
- Puppet Standard Library
|
229
|
+
- Puppet Standard Library Development Gem
|
225
230
|
- --main
|
226
231
|
- README.markdown
|
227
232
|
- --line-numbers
|
@@ -235,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
235
240
|
version: '0'
|
236
241
|
segments:
|
237
242
|
- 0
|
238
|
-
hash: -
|
243
|
+
hash: -2699750084598949787
|
239
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
245
|
none: false
|
241
246
|
requirements:
|
@@ -247,6 +252,6 @@ rubyforge_project: puppetmodule-stdlib
|
|
247
252
|
rubygems_version: 1.8.25
|
248
253
|
signing_key:
|
249
254
|
specification_version: 3
|
250
|
-
summary: This
|
251
|
-
|
255
|
+
summary: This gem provides a way to make the standard library available for other
|
256
|
+
module spec testing tasks.
|
252
257
|
test_files: []
|