knife-skeleton 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/knife_skeleton.gemspec +2 -2
- data/lib/chef/knife/skeleton_create.rb +12 -14
- data/lib/knife_skeleton/template.rb +1 -1
- data/lib/knife_skeleton/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTJjMWU5MDYzM2JkZjE5MzExZDY4MDlhOTI4ZWZiZTgzODhmOTdiOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGY3NjAwYzNhZmZhZjU1NWE1NjExZDdkZDU4ODhkYWZkNjliNTA3Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmY2ZTgxYjBmNDlhYzhhM2QxOTJhODY0YzVjZWRlOWUwN2E2YjBmOWFiNzky
|
10
|
+
YjVhZjA3YWQyOGQ0OWMxMmQ3NjE3MWQ3OThkOTg3MDhmMjRjYTYyOWRmZGIw
|
11
|
+
MWIwOWJjOTQ1MjJhYTljMDY0NmI3MDQ2MjVhYzMyYWYyYzIwNzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDZjZTU1YzU1OTI2YjE5YmMwMTJhOWU0ZjIxZmFjZTI1NmI2NTJiYWExN2I0
|
14
|
+
NzU2Yzc0YmY4Yzk5MzBiMjU2MjI2MWU3OWY4ZjhkMjQ0ZjJjNDRmMGQ1OTBm
|
15
|
+
MDgxMDdkODVkNWJiYjgzNTk3NzBjY2JlZTY1OWY4ZGIyOGVkNjk=
|
data/knife_skeleton.gemspec
CHANGED
@@ -19,12 +19,12 @@ eos
|
|
19
19
|
s.require_paths = ['lib']
|
20
20
|
s.version = KnifeSkeleton::VERSION
|
21
21
|
|
22
|
-
s.add_dependency 'chef', '~>
|
22
|
+
s.add_dependency 'chef', '~> 11'
|
23
23
|
s.add_dependency 'erubis', '~> 2.7'
|
24
24
|
|
25
25
|
s.add_development_dependency 'rake', '~> 10'
|
26
26
|
s.add_development_dependency 'rspec', '~> 2.14'
|
27
27
|
s.add_development_dependency 'rubocop', '~> 0.25'
|
28
28
|
s.add_development_dependency 'simplecov', '~> 0.9'
|
29
|
-
s.add_development_dependency 'fakefs', '
|
29
|
+
s.add_development_dependency 'fakefs', '>= 0.5.3'
|
30
30
|
end
|
@@ -112,9 +112,7 @@ eos
|
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
115
|
-
|
116
|
-
|
117
|
-
# Protected: Create cookbook directories
|
115
|
+
# Create cookbook directories
|
118
116
|
#
|
119
117
|
# Examples:
|
120
118
|
#
|
@@ -147,7 +145,7 @@ eos
|
|
147
145
|
end
|
148
146
|
end
|
149
147
|
|
150
|
-
#
|
148
|
+
# Create cookbook files from templates
|
151
149
|
#
|
152
150
|
# Examples:
|
153
151
|
#
|
@@ -182,7 +180,7 @@ eos
|
|
182
180
|
end
|
183
181
|
end
|
184
182
|
|
185
|
-
#
|
183
|
+
# Copy all files into the cookbook
|
186
184
|
#
|
187
185
|
# Examples:
|
188
186
|
#
|
@@ -208,7 +206,7 @@ eos
|
|
208
206
|
end
|
209
207
|
end
|
210
208
|
|
211
|
-
#
|
209
|
+
# Copy files
|
212
210
|
#
|
213
211
|
# Examples:
|
214
212
|
#
|
@@ -240,7 +238,7 @@ eos
|
|
240
238
|
end
|
241
239
|
end
|
242
240
|
|
243
|
-
#
|
241
|
+
# Render template
|
244
242
|
#
|
245
243
|
# Examples:
|
246
244
|
#
|
@@ -280,7 +278,7 @@ eos
|
|
280
278
|
end
|
281
279
|
end
|
282
280
|
|
283
|
-
#
|
281
|
+
# Test if parameter is empty
|
284
282
|
#
|
285
283
|
# Examples:
|
286
284
|
#
|
@@ -296,7 +294,7 @@ eos
|
|
296
294
|
parameter.nil? || parameter.empty?
|
297
295
|
end
|
298
296
|
|
299
|
-
#
|
297
|
+
# Get cookbook copyright
|
300
298
|
#
|
301
299
|
# @return [String]
|
302
300
|
#
|
@@ -304,7 +302,7 @@ eos
|
|
304
302
|
config[:cookbook_copyright] || 'YOUR_COMPANY_NAME'
|
305
303
|
end
|
306
304
|
|
307
|
-
#
|
305
|
+
# Get maintener email
|
308
306
|
#
|
309
307
|
# @return [String]
|
310
308
|
#
|
@@ -312,7 +310,7 @@ eos
|
|
312
310
|
config[:cookbook_email] || 'YOUR_EMAIL'
|
313
311
|
end
|
314
312
|
|
315
|
-
#
|
313
|
+
# Get license name
|
316
314
|
#
|
317
315
|
# @return [String]
|
318
316
|
#
|
@@ -321,7 +319,7 @@ eos
|
|
321
319
|
config[:cookbook_license]) || 'none'
|
322
320
|
end
|
323
321
|
|
324
|
-
#
|
322
|
+
# Get readme format
|
325
323
|
#
|
326
324
|
# @return [String]
|
327
325
|
#
|
@@ -329,7 +327,7 @@ eos
|
|
329
327
|
((config[:readme_format] != 'false') && config[:readme_format]) || 'md'
|
330
328
|
end
|
331
329
|
|
332
|
-
#
|
330
|
+
# Get files directory
|
333
331
|
#
|
334
332
|
# @return [String]
|
335
333
|
#
|
@@ -340,7 +338,7 @@ eos
|
|
340
338
|
)
|
341
339
|
end
|
342
340
|
|
343
|
-
#
|
341
|
+
# Get templates directory
|
344
342
|
#
|
345
343
|
# @return [String]
|
346
344
|
#
|
@@ -8,7 +8,7 @@ module KnifeSkeleton
|
|
8
8
|
#
|
9
9
|
# Examples:
|
10
10
|
#
|
11
|
-
#
|
11
|
+
# KnifeSkeleton::Template.render('Hello <%= title %>', {title: 'GoT'})
|
12
12
|
# # => "Hello GoT"
|
13
13
|
#
|
14
14
|
# @param [String] template Template string to used for rendering
|
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.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Rambaud
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '11'
|
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
|
-
version: '
|
27
|
+
version: '11'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: erubis
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,16 +99,16 @@ dependencies:
|
|
99
99
|
name: fakefs
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ! '>='
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
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
|
-
version:
|
111
|
+
version: 0.5.3
|
112
112
|
description: ! 'Knife plugin to create skeleton with rubocop, chefspec, kitchen,
|
113
113
|
|
114
114
|
strainer, etc...
|
@@ -187,4 +187,3 @@ test_files:
|
|
187
187
|
- spec/chef/knife/knife_skeleton_create_spec.rb
|
188
188
|
- spec/knife_skeleton/template_spec.rb
|
189
189
|
- spec/spec_helper.rb
|
190
|
-
has_rdoc:
|