pdqtest 0.1.19 → 0.1.20

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: 56e308974045957abc0f9063719b1749ac47471a
4
- data.tar.gz: fd467093cbd3676063009c43aaf929a82e313165
3
+ metadata.gz: 9ab99ead2e39c691ead4751641d6c53955d5a9fc
4
+ data.tar.gz: aa0b635445d674411d51a5258e4b21728d3c76ad
5
5
  SHA512:
6
- metadata.gz: f4eb15204f30c43ac060d88cbdf43302dafe388707354dce7900002ca89a1f6c76dab0d53fe221a46a19bc7056d34604f20e34f67c34349a6a266f7472efc81d
7
- data.tar.gz: 5eb125bd19cb025e1e2f77ccbfcd09cea1ab61bd32a55b561e0236bd9a3de40ba86ea0da244c2451939724685df34a237d53dc0ffc35a076977b63e58a2bcb66
6
+ metadata.gz: 38fbe79fe180945532fc76b78703a20dd8b3727fb6819bac7c4dbba8dea37133c40f5f787e34fa07e907caf505f0a0737c16352197b87c10011d6cc344e69ef9
7
+ data.tar.gz: 630af08c40bcc111613e754dc30b53ec03c19578311af08a8027b01e7c05614943d903667d02ddfc3a5d3ce421aa86f80219d0f204eb58ae3218e417640b0cef
@@ -42,10 +42,8 @@ module PDQTest
42
42
  def self.install_example
43
43
  example_file = File.join(EXAMPLES_DIR, 'init.pp')
44
44
  if ! File.exists?(example_file)
45
- init_pp = <<~END
46
- ##{PDQTest::Puppet::MAGIC_MARKER}
47
- include #{PDQTest::Puppet.module_name}
48
- END
45
+ template = File.read(Util::resource_path(File.join('templates', 'examples_init.pp.erb')))
46
+ init_pp = ERB.new(template, nil, '-').result(binding)
49
47
  File.write(example_file, init_pp)
50
48
  end
51
49
  end
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
@@ -0,0 +1,2 @@
1
+ #<%= PDQTest::Puppet::MAGIC_MARKER %>
2
+ include <%= PDQTest::Puppet.module_name %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdqtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams
@@ -249,6 +249,7 @@ files:
249
249
  - res/skeleton/init__before.bats
250
250
  - res/skeleton/init__setup.sh
251
251
  - res/skeleton/spec_helper.rb
252
+ - res/templates/examples_init.pp.erb
252
253
  - res/templates/rspec.rb.erb
253
254
  homepage: https://github.com/GeoffWilliams/pdqtest
254
255
  licenses: