knife-skeleton 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/files/Gemfile +7 -0
- data/files/Guardfile +28 -0
- data/files/Rakefile +1 -1
- data/files/chefignore +1 -0
- data/files/gitignore +1 -0
- data/files/rspec +2 -0
- data/files/rubocop.yml +1 -0
- data/knife_skeleton.gemspec +2 -2
- data/lib/chef/knife/cookbook_create_extension.rb +2 -0
- data/lib/knife_skeleton/version.rb +1 -1
- data/spec/chef/knife/knife_cookbook_create_extension_spec.rb +6 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bffb76186eb14397d4edc594ec72a32d48779db
|
4
|
+
data.tar.gz: f46dbb437c1de8a33a34cfd517db1a10252ae7a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e4e3b0399d6ea6aea04d8e1420ca214fa3bb56be50b4553f59074ea2ed6563009700916ffac784da4754ec36dec8518e1acc634c1411bd0fff39b1d01d86b7
|
7
|
+
data.tar.gz: c924b96c51f42ee707e15c7db18c40825c8303a0ce4d0909e1498dea816eb900df844383c28024dd2f323065127f870bdbd12159ce5d75eef33739f02ba00d84
|
data/files/Gemfile
CHANGED
data/files/Guardfile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
guard 'foodcritic', cookbook_paths: '.' do
|
2
|
+
watch(%r{attributes/.+\.rb$})
|
3
|
+
watch(%r{providers/.+\.rb$})
|
4
|
+
watch(%r{recipes/.+\.rb$})
|
5
|
+
watch(%r{resources/.+\.rb$})
|
6
|
+
watch(%r{templates/.+$})
|
7
|
+
watch('metadata.rb')
|
8
|
+
end
|
9
|
+
|
10
|
+
guard :rubocop do
|
11
|
+
watch(%r{/.+\.rb$/})
|
12
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
13
|
+
end
|
14
|
+
|
15
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
16
|
+
require 'guard/rspec/dsl'
|
17
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
18
|
+
|
19
|
+
# RSpec files
|
20
|
+
rspec = dsl.rspec
|
21
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
22
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
23
|
+
watch(rspec.spec_files)
|
24
|
+
|
25
|
+
# Ruby files
|
26
|
+
ruby = dsl.ruby
|
27
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
28
|
+
end
|
data/files/Rakefile
CHANGED
data/files/chefignore
CHANGED
data/files/gitignore
CHANGED
data/files/rspec
ADDED
data/files/rubocop.yml
CHANGED
data/knife_skeleton.gemspec
CHANGED
@@ -12,8 +12,8 @@ eos
|
|
12
12
|
s.license = 'Apache 2.0'
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
|
15
|
-
s.executables = s.files.grep(
|
16
|
-
s.test_files = s.files.grep(
|
15
|
+
s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
16
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
17
17
|
s.name = 'knife-skeleton'
|
18
18
|
s.require_paths = ['lib']
|
19
19
|
s.version = KnifeSkeleton::VERSION
|
@@ -166,9 +166,11 @@ describe Chef::Knife::CookbookCreate do
|
|
166
166
|
@knife.ui.should_receive(:msg).with('** Create cookbook foobar into /tmp')
|
167
167
|
@knife.ui.should_receive(:msg).with("** Create 'Berksfile'")
|
168
168
|
@knife.ui.should_receive(:msg).with("** Create 'Gemfile'")
|
169
|
+
@knife.ui.should_receive(:msg).with("** Create 'Guardfile'")
|
169
170
|
@knife.ui.should_receive(:msg).with("** Create '.gitignore'")
|
170
171
|
@knife.ui.should_receive(:msg).with("** Create '.travis.yml'")
|
171
172
|
@knife.ui.should_receive(:msg).with("** Create '.chefignore'")
|
173
|
+
@knife.ui.should_receive(:msg).with("** Create '.rspec'")
|
172
174
|
@knife.ui.should_receive(:msg).with("** Create '.rubocop.yml'")
|
173
175
|
@knife.ui.should_receive(:msg).with("** Create '.kitchen.yml'")
|
174
176
|
@knife.ui.should_receive(:msg).with("** Create 'Rakefile'")
|
@@ -188,7 +190,9 @@ describe Chef::Knife::CookbookCreate do
|
|
188
190
|
@knife.ui.should_receive(:msg).with('** Create cookbook foobar into /tmp')
|
189
191
|
@knife.ui.should_receive(:warn).with("'Berksfile' already exists")
|
190
192
|
@knife.ui.should_receive(:warn).with("'Gemfile' already exists")
|
193
|
+
@knife.ui.should_receive(:warn).with("'Guardfile' already exists")
|
191
194
|
@knife.ui.should_receive(:warn).with("'.gitignore' already exists")
|
195
|
+
@knife.ui.should_receive(:warn).with("'.rspec' already exists")
|
192
196
|
@knife.ui.should_receive(:warn).with("'.rubocop.yml' already exists")
|
193
197
|
@knife.ui.should_receive(:warn).with("'.kitchen.yml' already exists")
|
194
198
|
@knife.ui.should_receive(:warn).with("'.travis.yml' already exists")
|
@@ -229,7 +233,9 @@ describe Chef::Knife::CookbookCreate do
|
|
229
233
|
metadata.rb
|
230
234
|
Berksfile
|
231
235
|
Gemfile
|
236
|
+
Guardfile
|
232
237
|
.gitignore
|
238
|
+
.rspec
|
233
239
|
.rubocop.yml
|
234
240
|
.travis.yml
|
235
241
|
.chefignore
|
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Rambaud
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -109,9 +109,8 @@ dependencies:
|
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 0.5.3
|
112
|
-
description:
|
113
|
-
|
114
|
-
'
|
112
|
+
description: |
|
113
|
+
Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...
|
115
114
|
email:
|
116
115
|
- pierre.rambaud@numergy.com
|
117
116
|
- antoine.rouyer@numergy.com
|
@@ -128,6 +127,7 @@ files:
|
|
128
127
|
- Rakefile
|
129
128
|
- files/Berksfile
|
130
129
|
- files/Gemfile
|
130
|
+
- files/Guardfile
|
131
131
|
- files/Rakefile
|
132
132
|
- files/chefignore
|
133
133
|
- files/gitignore
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- files/licenses/gplv2
|
136
136
|
- files/licenses/gplv3
|
137
137
|
- files/licenses/mit
|
138
|
+
- files/rspec
|
138
139
|
- files/rubocop.yml
|
139
140
|
- files/travis.yml
|
140
141
|
- knife_skeleton.gemspec
|
@@ -178,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
179
|
version: '0'
|
179
180
|
requirements: []
|
180
181
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.4.
|
182
|
+
rubygems_version: 2.4.6
|
182
183
|
signing_key:
|
183
184
|
specification_version: 4
|
184
185
|
summary: Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...
|