knife-skeleton 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/files/Berksfile +1 -3
- data/files/Gemfile +1 -1
- data/files/rubocop.yml +0 -14
- data/lib/chef/knife/cookbook_create_extension.rb +11 -16
- data/lib/knife_skeleton/version.rb +1 -1
- data/templates/.kitchen.yml.erb +4 -4
- data/templates/metadata.rb.erb +1 -0
- data/templates/spec/default_spec.rb.erb +0 -1
- data/templates/spec/spec_helper.rb.erb +0 -2
- metadata +25 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32b689281b6637f8b39604758277b3f8df9b790d
|
4
|
+
data.tar.gz: 47577b3e9873a8367c974fde2e64f8db14ad1790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca64faa30a0f53b5dddcd69f5532e7c052d758a6880112da3f5bda98982c983db9a1097f46fbaf95e710f859330b6530063566b81f0b83f42a8634920b6fae9
|
7
|
+
data.tar.gz: b43b36960c210fd138c5f80c7d60f39cd84d5eb8cb784ef69ca6d9fb5112131a2b995f0aa1fc5b21fe264a24c49e75431384a7b0453e86b0c5da9707a7f05825
|
data/files/Berksfile
CHANGED
data/files/Gemfile
CHANGED
data/files/rubocop.yml
CHANGED
@@ -15,7 +15,7 @@ class Chef
|
|
15
15
|
description: <<-eos
|
16
16
|
The directory where the cookbook will be created
|
17
17
|
eos
|
18
|
-
|
18
|
+
)
|
19
19
|
|
20
20
|
option(:readme_format,
|
21
21
|
short: '-r FORMAT',
|
@@ -23,28 +23,28 @@ eos
|
|
23
23
|
description: <<-eos
|
24
24
|
Format of the README file, supported formats are 'md', 'rdoc' and 'txt'
|
25
25
|
eos
|
26
|
-
|
26
|
+
)
|
27
27
|
option(:cookbook_license,
|
28
28
|
short: '-I LICENSE',
|
29
29
|
long: '--license LICENSE',
|
30
30
|
description: <<-eos
|
31
31
|
License apachev2, gplv2, gplv3, mit or none
|
32
32
|
eos
|
33
|
-
|
33
|
+
)
|
34
34
|
option(:cookbook_copyright,
|
35
35
|
short: '-C COPYRIGHT',
|
36
36
|
long: '--copyright COPYRIGHT',
|
37
37
|
description: <<-eos
|
38
38
|
Name of Copyright holder
|
39
39
|
eos
|
40
|
-
|
40
|
+
)
|
41
41
|
option(:cookbook_email,
|
42
42
|
short: '-m EMAIL',
|
43
43
|
long: '--email EMAIL',
|
44
44
|
description: <<-eos
|
45
45
|
Email address of cookbook maintainer
|
46
46
|
eos
|
47
|
-
|
47
|
+
)
|
48
48
|
|
49
49
|
# Public: Knife skeleton create runner
|
50
50
|
#
|
@@ -76,10 +76,8 @@ eos
|
|
76
76
|
readme_format: cookbook_readme_format
|
77
77
|
}
|
78
78
|
|
79
|
-
create_cookbook_directories(
|
80
|
-
params[:
|
81
|
-
params[:cookbook_name]
|
82
|
-
)
|
79
|
+
create_cookbook_directories(params[:cookbook_path],
|
80
|
+
params[:cookbook_name])
|
83
81
|
create_cookbook_files(params[:cookbook_path], params[:cookbook_name])
|
84
82
|
create_cookbook_templates(params)
|
85
83
|
end
|
@@ -139,8 +137,7 @@ eos
|
|
139
137
|
files/default
|
140
138
|
templates/default
|
141
139
|
test/integration/default/serverspec).each do |dir|
|
142
|
-
FileUtils.mkdir_p(File.join(
|
143
|
-
cookbook_path,
|
140
|
+
FileUtils.mkdir_p(File.join(cookbook_path,
|
144
141
|
cookbook_name,
|
145
142
|
dir))
|
146
143
|
end
|
@@ -159,7 +156,7 @@ eos
|
|
159
156
|
params[:license_content] = File.read(File.join(files_directory,
|
160
157
|
'licenses',
|
161
158
|
params[:license])
|
162
|
-
|
159
|
+
) if params[:license] != 'none'
|
163
160
|
|
164
161
|
params[:license_content] = '' unless params[:license] != 'none'
|
165
162
|
|
@@ -224,8 +221,7 @@ eos
|
|
224
221
|
else
|
225
222
|
ui.msg("** Create '#{file_name}'")
|
226
223
|
FileUtils.cp(File
|
227
|
-
.join(
|
228
|
-
files_directory,
|
224
|
+
.join(files_directory,
|
229
225
|
file_name.gsub(/^\./, '')),
|
230
226
|
dst)
|
231
227
|
end
|
@@ -252,8 +248,7 @@ eos
|
|
252
248
|
ui.msg("** Create '#{file_name}'")
|
253
249
|
File.open(dst, 'w+') do |file|
|
254
250
|
file.write(KnifeSkeleton::Template
|
255
|
-
.render(File.read(File.join(
|
256
|
-
templates_directory,
|
251
|
+
.render(File.read(File.join(templates_directory,
|
257
252
|
file_name + '.erb')),
|
258
253
|
params))
|
259
254
|
end
|
data/templates/.kitchen.yml.erb
CHANGED
data/templates/metadata.rb.erb
CHANGED
@@ -5,7 +5,6 @@ require_relative 'spec_helper'
|
|
5
5
|
describe '<%= cookbook_name %>::default' do
|
6
6
|
subject { ChefSpec::ServerRunner.new.converge(described_recipe) }
|
7
7
|
|
8
|
-
# Write full examples using the `expect` syntax
|
9
8
|
it 'does includes recipes' do
|
10
9
|
expect(subject).to include_recipe('apt')
|
11
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-skeleton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Rambaud
|
@@ -9,108 +9,109 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: erubis
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '2.7'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '2.7'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '10'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '10'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '2.14'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '2.14'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rubocop
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0.25'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0.25'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: simplecov
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - ~>
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0.9'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - ~>
|
95
|
+
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0.9'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: fakefs
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: 0.5.3
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 0.5.3
|
112
|
-
description:
|
113
|
-
|
112
|
+
description: 'Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...
|
113
|
+
|
114
|
+
'
|
114
115
|
email:
|
115
116
|
- pierre.rambaud@numergy.com
|
116
117
|
- antoine.rouyer@numergy.com
|
@@ -118,9 +119,9 @@ executables: []
|
|
118
119
|
extensions: []
|
119
120
|
extra_rdoc_files: []
|
120
121
|
files:
|
121
|
-
- .gitignore
|
122
|
-
- .rubocop.yml
|
123
|
-
- .travis.yml
|
122
|
+
- ".gitignore"
|
123
|
+
- ".rubocop.yml"
|
124
|
+
- ".travis.yml"
|
124
125
|
- Gemfile
|
125
126
|
- LICENSE
|
126
127
|
- README.md
|
@@ -167,17 +168,17 @@ require_paths:
|
|
167
168
|
- lib
|
168
169
|
required_ruby_version: !ruby/object:Gem::Requirement
|
169
170
|
requirements:
|
170
|
-
- -
|
171
|
+
- - ">="
|
171
172
|
- !ruby/object:Gem::Version
|
172
173
|
version: 2.0.0
|
173
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
175
|
requirements:
|
175
|
-
- -
|
176
|
+
- - ">="
|
176
177
|
- !ruby/object:Gem::Version
|
177
178
|
version: '0'
|
178
179
|
requirements: []
|
179
180
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.4.
|
181
|
+
rubygems_version: 2.4.5
|
181
182
|
signing_key:
|
182
183
|
specification_version: 4
|
183
184
|
summary: Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...
|