puppet-retrospec 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile +4 -4
  4. data/README.md +63 -81
  5. data/VERSION +1 -1
  6. data/bin/retrospec +8 -4
  7. data/lib/retrospec.rb +40 -9
  8. data/lib/retrospec/helpers.rb +36 -2
  9. data/lib/retrospec/puppet_module.rb +3 -1
  10. data/lib/retrospec/templates/clone-hook +39 -0
  11. data/lib/retrospec/version.rb +1 -1
  12. data/puppet-retrospec.gemspec +3 -44
  13. data/spec/unit/puppet-retrospec_spec.rb +4 -65
  14. metadata +3 -100
  15. data/lib/retrospec/templates/acceptance_spec_test.erb +0 -24
  16. data/lib/retrospec/templates/module_files/.fixtures.yml +0 -8
  17. data/lib/retrospec/templates/module_files/.gitignore.erb +0 -8
  18. data/lib/retrospec/templates/module_files/.travis.yml +0 -14
  19. data/lib/retrospec/templates/module_files/Gemfile +0 -27
  20. data/lib/retrospec/templates/module_files/README.markdown +0 -75
  21. data/lib/retrospec/templates/module_files/Rakefile +0 -72
  22. data/lib/retrospec/templates/module_files/Vagrantfile +0 -95
  23. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-59-x64.yml +0 -10
  24. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64-pe.yml +0 -12
  25. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64.yml +0 -11
  26. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-66-x64.yml +0 -11
  27. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-607-x64.yml +0 -11
  28. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-70rc1-x64.yml +0 -11
  29. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-i386.yml +0 -11
  30. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-x64.yml +0 -11
  31. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/default.yml +0 -11
  32. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/fedora-18-x64.yml +0 -11
  33. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/sles-11sp1-x64.yml +0 -11
  34. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml +0 -10
  35. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml +0 -10
  36. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1310-x64.yml +0 -11
  37. data/lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml +0 -11
  38. data/lib/retrospec/templates/module_files/spec/shared_contexts.rb +0 -45
  39. data/lib/retrospec/templates/module_files/spec/spec_helper.rb +0 -11
  40. data/lib/retrospec/templates/module_files/spec/spec_helper_acceptance.rb +0 -33
  41. data/lib/retrospec/templates/resource_spec_file.erb +0 -45
  42. data/vendor/gems/puppet-3.7.3/COMMITTERS.md +0 -244
  43. data/vendor/gems/puppet-3.7.3/CONTRIBUTING.md +0 -91
  44. data/vendor/gems/puppet-3.7.3/README.md +0 -76
@@ -84,7 +84,9 @@ module Utilities
84
84
  end
85
85
  end
86
86
  # switch back to current parser, since we rely on the AST parser
87
- Puppet[:parser] = 'current' if future_parser
87
+ # unless the user enabled the future parser.
88
+ # Note: some functionality does not currently work with future_parser
89
+ Puppet[:parser] = 'current' unless future_parser
88
90
  end
89
91
  dir
90
92
  end
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env ruby
2
+ require 'fileutils'
3
+ require 'open-uri'
4
+
5
+ @template_dir = ARGV[0] || File.join(ENV['HOME'], '.retrospec_templates')
6
+ @template_repo = ARGV[1] || 'https://github.com/nwops/retrospec-templates'
7
+ @template_branch = ARGV[2] || 'master'
8
+
9
+ def create_repo(template_dir, git_url, branch)
10
+ # check if repo already exists
11
+ unless git_exists?(template_dir)
12
+ puts `git clone -b #{branch} #{git_url} #{template_dir}`
13
+ end
14
+ end
15
+
16
+ def git_exists?(template_dir)
17
+ File.exists? File.join(template_dir,'.git','config')
18
+ end
19
+
20
+ def origin_exists?(template_dir)
21
+ `git -C #{template_dir} remote show origin`
22
+ $?.success?
23
+ end
24
+
25
+ def update_templates(git_url, dest, branch='master')
26
+ create_repo(dest, git_url, branch)
27
+ puts `git -C #{dest} pull`
28
+ dest
29
+ end
30
+
31
+ def connected?
32
+ open("http://www.google.com/") rescue false
33
+ end
34
+
35
+ # sometimes I work on an airplane and don't care to clone everything all the time
36
+ # so lets check for connectivity first
37
+ if connected?
38
+ update_templates(@template_repo, @template_dir, @template_branch)
39
+ end
@@ -1,3 +1,3 @@
1
1
  module Puppet_Retrospec
2
- VERSION = "0.7.3"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "puppet-retrospec"
8
- s.version = "0.7.3"
8
+ s.version = "0.8.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Osman"]
12
- s.date = "2015-07-28"
12
+ s.date = "2015-09-04"
13
13
  s.description = "Retrofits and generates valid puppet rspec test code to existing modules"
14
14
  s.email = "corey@logicminds.biz"
15
15
  s.executables = ["retrospec"]
@@ -35,33 +35,7 @@ Gem::Specification.new do |s|
35
35
  "lib/retrospec/puppet_module.rb",
36
36
  "lib/retrospec/resource.rb",
37
37
  "lib/retrospec/spec_object.rb",
38
- "lib/retrospec/templates/acceptance_spec_test.erb",
39
- "lib/retrospec/templates/module_files/.fixtures.yml",
40
- "lib/retrospec/templates/module_files/.gitignore.erb",
41
- "lib/retrospec/templates/module_files/.travis.yml",
42
- "lib/retrospec/templates/module_files/Gemfile",
43
- "lib/retrospec/templates/module_files/README.markdown",
44
- "lib/retrospec/templates/module_files/Rakefile",
45
- "lib/retrospec/templates/module_files/Vagrantfile",
46
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-59-x64.yml",
47
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64-pe.yml",
48
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64.yml",
49
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-66-x64.yml",
50
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-607-x64.yml",
51
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-70rc1-x64.yml",
52
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-i386.yml",
53
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-x64.yml",
54
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/default.yml",
55
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/fedora-18-x64.yml",
56
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/sles-11sp1-x64.yml",
57
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml",
58
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml",
59
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1310-x64.yml",
60
- "lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml",
61
- "lib/retrospec/templates/module_files/spec/shared_contexts.rb",
62
- "lib/retrospec/templates/module_files/spec/spec_helper.rb",
63
- "lib/retrospec/templates/module_files/spec/spec_helper_acceptance.rb",
64
- "lib/retrospec/templates/resource_spec_file.erb",
38
+ "lib/retrospec/templates/clone-hook",
65
39
  "lib/retrospec/type_code.rb",
66
40
  "lib/retrospec/variable_store.rb",
67
41
  "lib/retrospec/version.rb",
@@ -82,11 +56,8 @@ Gem::Specification.new do |s|
82
56
  "spec/unit/resource_spec.rb",
83
57
  "spec/unit/type_code_spec.rb",
84
58
  "spec/unit/variable_store_spec.rb",
85
- "vendor/gems/puppet-3.7.3/COMMITTERS.md",
86
- "vendor/gems/puppet-3.7.3/CONTRIBUTING.md",
87
59
  "vendor/gems/puppet-3.7.3/Gemfile",
88
60
  "vendor/gems/puppet-3.7.3/LICENSE",
89
- "vendor/gems/puppet-3.7.3/README.md",
90
61
  "vendor/gems/puppet-3.7.3/Rakefile",
91
62
  "vendor/gems/puppet-3.7.3/bin/extlookup2hiera",
92
63
  "vendor/gems/puppet-3.7.3/bin/puppet",
@@ -1341,13 +1312,9 @@ Gem::Specification.new do |s|
1341
1312
  s.specification_version = 4
1342
1313
 
1343
1314
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
1344
- s.add_runtime_dependency(%q<facter>, ["< 3", "> 1.6"])
1345
- s.add_runtime_dependency(%q<hiera>, ["~> 1.0"])
1346
1315
  s.add_runtime_dependency(%q<trollop>, [">= 0"])
1347
1316
  s.add_development_dependency(%q<rspec>, ["~> 2.14"])
1348
1317
  s.add_development_dependency(%q<puppet>, ["= 3.7.3"])
1349
- s.add_development_dependency(%q<facter>, ["< 3", "> 1.6"])
1350
- s.add_development_dependency(%q<hiera>, ["~> 1.0"])
1351
1318
  s.add_development_dependency(%q<yard>, ["~> 0.7"])
1352
1319
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
1353
1320
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
@@ -1358,13 +1325,9 @@ Gem::Specification.new do |s|
1358
1325
  s.add_development_dependency(%q<pry-stack_explorer>, [">= 0"])
1359
1326
  s.add_development_dependency(%q<pry-coolline>, [">= 0"])
1360
1327
  else
1361
- s.add_dependency(%q<facter>, ["< 3", "> 1.6"])
1362
- s.add_dependency(%q<hiera>, ["~> 1.0"])
1363
1328
  s.add_dependency(%q<trollop>, [">= 0"])
1364
1329
  s.add_dependency(%q<rspec>, ["~> 2.14"])
1365
1330
  s.add_dependency(%q<puppet>, ["= 3.7.3"])
1366
- s.add_dependency(%q<facter>, ["< 3", "> 1.6"])
1367
- s.add_dependency(%q<hiera>, ["~> 1.0"])
1368
1331
  s.add_dependency(%q<yard>, ["~> 0.7"])
1369
1332
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
1370
1333
  s.add_dependency(%q<bundler>, ["~> 1.0"])
@@ -1376,13 +1339,9 @@ Gem::Specification.new do |s|
1376
1339
  s.add_dependency(%q<pry-coolline>, [">= 0"])
1377
1340
  end
1378
1341
  else
1379
- s.add_dependency(%q<facter>, ["< 3", "> 1.6"])
1380
- s.add_dependency(%q<hiera>, ["~> 1.0"])
1381
1342
  s.add_dependency(%q<trollop>, [">= 0"])
1382
1343
  s.add_dependency(%q<rspec>, ["~> 2.14"])
1383
1344
  s.add_dependency(%q<puppet>, ["= 3.7.3"])
1384
- s.add_dependency(%q<facter>, ["< 3", "> 1.6"])
1385
- s.add_dependency(%q<hiera>, ["~> 1.0"])
1386
1345
  s.add_dependency(%q<yard>, ["~> 0.7"])
1387
1346
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
1388
1347
  s.add_dependency(%q<bundler>, ["~> 1.0"])
@@ -14,13 +14,12 @@ describe "puppet-retrospec" do
14
14
  FileUtils.rm_rf(fixture_modules_path) if ENV['RETROSPEC_CLEAN_UP_TEST_MODULES'] =~ /true/
15
15
  install_module('puppetlabs-tomcat')
16
16
  @path = File.join(fixture_modules_path, 'tomcat')
17
-
18
17
  end
19
18
 
20
19
  before :each do
21
20
  clean_up_spec_dir(@path)
22
21
  @opts = {:module_path => @path, :enable_beaker_tests => false,
23
- :enable_user_templates => false, :template_dir => nil }
22
+ :enable_user_templates => false, :template_dir => '/tmp/.retrospec_templates' }
24
23
  end
25
24
 
26
25
  it 'should run without errors using new' do
@@ -73,66 +72,6 @@ describe "puppet-retrospec" do
73
72
  expect(File.exists?(File.join(spec_path, 'acceptance', 'nodesets', 'default.yml'))).to eq(false)
74
73
  end
75
74
 
76
- it 'should create a local templates directory when flag is on' do
77
- @opts[:enable_user_templates] = true
78
- FakeFS do
79
- user_directory = Helpers.default_user_template_dir
80
- FileUtils.mkdir_p(File.join(Helpers.gem_template_dir, 'module_files', 'spec', 'acceptance','nodesets'))
81
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', '.fixtures.yml'))
82
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'resource_spec_file.erb'))
83
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', 'spec','shared_contexts.rb'))
84
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', 'spec','spec_helper.rb'))
85
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files','Gemfile'))
86
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files','Rakefile'))
87
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', 'spec', 'acceptance','nodesets', 'default.yml'))
88
- FileUtils.mkdir_p('/modules/tomcat/manifests')
89
- #FileUtils.open('/modules/tomcat/manifests/init.pp', 'w') {|f| f.write("class tomcat(){}")}
90
- @opts[:module_path] = '/modules/tomcat'
91
- Retrospec.new(@opts[:module_path], @opts)
92
- expect(File.exists?(user_directory)).to eq(true)
93
- expect(File.exists?(File.join(user_directory, 'module_files', '.fixtures.yml'))).to eq(true)
94
- expect(File.exists?(File.join(user_directory, 'module_files','Gemfile'))).to eq(true)
95
- expect(File.exists?(File.join(user_directory, 'resource_spec_file.erb'))).to eq(true)
96
- expect(File.exists?(File.join(user_directory, 'module_files','spec','shared_contexts.rb'))).to eq(true)
97
- expect(File.exists?(File.join(user_directory, 'module_files','spec','spec_helper.rb'))).to eq(true)
98
- expect(File.exists?(File.join(user_directory, 'module_files','spec','acceptance','nodesets'))).to eq(true)
99
- expect(File.exists?(File.join(user_directory, 'module_files','spec','acceptance','nodesets','default.yml'))).to eq(true)
100
- expect(File.exists?(File.join(user_directory, 'module_files','Rakefile'))).to eq(true)
101
-
102
- end
103
- end
104
-
105
- it 'should create the user supplied templates directory when variable is set' do
106
- @opts[:template_dir] = '/tmp/my_templates'
107
- FakeFS do
108
- FileUtils.mkdir_p(File.join(Helpers.gem_template_dir, 'module_files', 'spec', 'acceptance','nodesets'))
109
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', '.fixtures.yml'))
110
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'resource_spec_file.erb'))
111
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', 'spec','shared_contexts.rb'))
112
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', 'spec','spec_helper.rb'))
113
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files','Gemfile'))
114
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files','Rakefile'))
115
- FileUtils.touch(File.join(Helpers.gem_template_dir, 'module_files', 'spec', 'acceptance','nodesets', 'default.yml'))
116
- FileUtils.mkdir_p('/modules/tomcat/manifests')
117
- #FileUtils.open('/modules/tomcat/manifests/init.pp', 'w') {|f| f.write("class tomcat(){}")}
118
- @opts[:module_path] = '/modules/tomcat'
119
- r = Retrospec.new(@opts[:module_path], @opts)
120
- user_directory = r.template_dir
121
- expect(user_directory).to eq('/tmp/my_templates')
122
- expect(File.exists?(user_directory)).to eq(true)
123
- expect(File.exists?(File.join(user_directory, 'module_files', '.fixtures.yml'))).to eq(true)
124
- expect(File.exists?(File.join(user_directory, 'module_files','Gemfile'))).to eq(true)
125
- expect(File.exists?(File.join(user_directory, 'resource_spec_file.erb'))).to eq(true)
126
- expect(File.exists?(File.join(user_directory, 'module_files','spec','shared_contexts.rb'))).to eq(true)
127
- expect(File.exists?(File.join(user_directory, 'module_files','spec','spec_helper.rb'))).to eq(true)
128
- expect(File.exists?(File.join(user_directory, 'module_files','spec','acceptance','nodesets'))).to eq(true)
129
- expect(File.exists?(File.join(user_directory, 'module_files','spec','acceptance','nodesets','default.yml'))).to eq(true)
130
- expect(File.exists?(File.join(user_directory, 'module_files','Rakefile'))).to eq(true)
131
-
132
- end
133
-
134
- end
135
-
136
75
  it 'should create proper spec helper file' do
137
76
  tomcat = Retrospec.new(@opts[:module_path], @opts)
138
77
  filepath = File.expand_path(File.join(@path, 'spec', 'spec_helper.rb'))
@@ -169,7 +108,7 @@ describe "puppet-retrospec" do
169
108
 
170
109
  it 'should create acceptance spec helper file' do
171
110
  opts = {:module_path => @path, :enable_beaker_tests => true,
172
- :enable_user_templates => false, :template_dir => nil }
111
+ :template_dir => '/tmp/my_templates' }
173
112
  tomcat = Retrospec.new(@opts[:module_path], opts)
174
113
  filepath = File.expand_path(File.join(@path, 'spec', 'spec_helper_acceptance.rb'))
175
114
  tomcat.safe_create_module_files
@@ -178,7 +117,7 @@ describe "puppet-retrospec" do
178
117
 
179
118
  it 'should not create acceptance spec helper file' do
180
119
  opts = {:module_path => @path, :enable_beaker_tests => false,
181
- :enable_user_templates => false, :template_dir => nil }
120
+ :template_dir => '/tmp/my_templates' }
182
121
  filepath = File.expand_path(File.join(@path, 'spec', 'spec_helper_acceptance.rb'))
183
122
  tomcat = Retrospec.new(@opts[:module_path], opts)
184
123
  tomcat.safe_create_module_files
@@ -187,7 +126,7 @@ describe "puppet-retrospec" do
187
126
 
188
127
  it 'should create 15 nodesets' do
189
128
  opts = {:module_path => @path, :enable_beaker_tests => true,
190
- :enable_user_templates => false, :template_dir => nil }
129
+ :template_dir => '/tmp/my_templates' }
191
130
  tomcat = Retrospec.new(@opts[:module_path], opts)
192
131
  filepath = File.expand_path(File.join(@path, 'spec', 'acceptance', 'nodesets', 'default.yml'))
193
132
  tomcat.safe_create_module_files
metadata CHANGED
@@ -1,49 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-retrospec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Osman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: facter
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - <
18
- - !ruby/object:Gem::Version
19
- version: '3'
20
- - - '>'
21
- - !ruby/object:Gem::Version
22
- version: '1.6'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - <
28
- - !ruby/object:Gem::Version
29
- version: '3'
30
- - - '>'
31
- - !ruby/object:Gem::Version
32
- version: '1.6'
33
- - !ruby/object:Gem::Dependency
34
- name: hiera
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ~>
38
- - !ruby/object:Gem::Version
39
- version: '1.0'
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: '1.0'
47
13
  - !ruby/object:Gem::Dependency
48
14
  name: trollop
49
15
  requirement: !ruby/object:Gem::Requirement
@@ -86,40 +52,6 @@ dependencies:
86
52
  - - '='
87
53
  - !ruby/object:Gem::Version
88
54
  version: 3.7.3
89
- - !ruby/object:Gem::Dependency
90
- name: facter
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - <
94
- - !ruby/object:Gem::Version
95
- version: '3'
96
- - - '>'
97
- - !ruby/object:Gem::Version
98
- version: '1.6'
99
- type: :development
100
- prerelease: false
101
- version_requirements: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - <
104
- - !ruby/object:Gem::Version
105
- version: '3'
106
- - - '>'
107
- - !ruby/object:Gem::Version
108
- version: '1.6'
109
- - !ruby/object:Gem::Dependency
110
- name: hiera
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - ~>
114
- - !ruby/object:Gem::Version
115
- version: '1.0'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - ~>
121
- - !ruby/object:Gem::Version
122
- version: '1.0'
123
55
  - !ruby/object:Gem::Dependency
124
56
  name: yard
125
57
  requirement: !ruby/object:Gem::Requirement
@@ -272,33 +204,7 @@ files:
272
204
  - lib/retrospec/puppet_module.rb
273
205
  - lib/retrospec/resource.rb
274
206
  - lib/retrospec/spec_object.rb
275
- - lib/retrospec/templates/acceptance_spec_test.erb
276
- - lib/retrospec/templates/module_files/.fixtures.yml
277
- - lib/retrospec/templates/module_files/.gitignore.erb
278
- - lib/retrospec/templates/module_files/.travis.yml
279
- - lib/retrospec/templates/module_files/Gemfile
280
- - lib/retrospec/templates/module_files/README.markdown
281
- - lib/retrospec/templates/module_files/Rakefile
282
- - lib/retrospec/templates/module_files/Vagrantfile
283
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-59-x64.yml
284
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64-pe.yml
285
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-64-x64.yml
286
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/centos-66-x64.yml
287
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-607-x64.yml
288
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-70rc1-x64.yml
289
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-i386.yml
290
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/debian-73-x64.yml
291
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/default.yml
292
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/fedora-18-x64.yml
293
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/sles-11sp1-x64.yml
294
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml
295
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
296
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1310-x64.yml
297
- - lib/retrospec/templates/module_files/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
298
- - lib/retrospec/templates/module_files/spec/shared_contexts.rb
299
- - lib/retrospec/templates/module_files/spec/spec_helper.rb
300
- - lib/retrospec/templates/module_files/spec/spec_helper_acceptance.rb
301
- - lib/retrospec/templates/resource_spec_file.erb
207
+ - lib/retrospec/templates/clone-hook
302
208
  - lib/retrospec/type_code.rb
303
209
  - lib/retrospec/variable_store.rb
304
210
  - lib/retrospec/version.rb
@@ -319,11 +225,8 @@ files:
319
225
  - spec/unit/resource_spec.rb
320
226
  - spec/unit/type_code_spec.rb
321
227
  - spec/unit/variable_store_spec.rb
322
- - vendor/gems/puppet-3.7.3/COMMITTERS.md
323
- - vendor/gems/puppet-3.7.3/CONTRIBUTING.md
324
228
  - vendor/gems/puppet-3.7.3/Gemfile
325
229
  - vendor/gems/puppet-3.7.3/LICENSE
326
- - vendor/gems/puppet-3.7.3/README.md
327
230
  - vendor/gems/puppet-3.7.3/Rakefile
328
231
  - vendor/gems/puppet-3.7.3/bin/extlookup2hiera
329
232
  - vendor/gems/puppet-3.7.3/bin/puppet
@@ -1,24 +0,0 @@
1
- require 'spec_helper_acceptance'
2
-
3
- describe '<%= @type.name -%> <%= @type.type %>' do
4
- describe 'running puppet code' do
5
- it 'should work with no errors' do
6
- pp = <<-EOS
7
- class { '<%= @type.name %>':
8
- <%- @parameters.each do |k,v| -%>
9
- <%- if v.nil? -%>
10
- <%= "#{k} => 'place_value_here'," %>
11
- <%- else -%>
12
- <%= "##{k} => #{variable_value(v)}," %>
13
- <%- end -%>
14
- <%- end -%>
15
- }
16
- EOS
17
-
18
- # Run it twice and test for idempotency
19
- apply_manifest(pp, :catch_failures => true)
20
- apply_manifest(pp, :catch_changes => true)
21
- end
22
-
23
- end
24
- end
@@ -1,8 +0,0 @@
1
- fixtures:
2
- symlinks:
3
- <%= module_name %>: "#{source_dir}"
4
- repositories:
5
- stdlib:
6
- repo: https://github.com/puppetlabs/puppetlabs-stdlib.git
7
- ref: 4.3.2
8
- forge_modules:
@@ -1,8 +0,0 @@
1
- .*.sw?
2
- pkg
3
- spec/fixtures
4
- .rspec_system
5
- .vagrant
6
- .bundle
7
- vendor
8
- .idea