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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22ca6899011cdcfee3d901f42a406a53c7e99a2e
4
- data.tar.gz: ccd4df010b8e6e97927fdd3f7c86b4d9cc00befc
3
+ metadata.gz: 32b689281b6637f8b39604758277b3f8df9b790d
4
+ data.tar.gz: 47577b3e9873a8367c974fde2e64f8db14ad1790
5
5
  SHA512:
6
- metadata.gz: ad620d3b66337dc2c84d41f2ce1d6f50d2b9b4ce77fc9eb8888660e86dcf56a21179603197c8fd0ff32d3c2053fd7e91715b0558ceed22ecd9ee58e04573cc52
7
- data.tar.gz: ede844eb79a88e64bd94c795505a34017cda8078a04e15ab3ee9587df55fd288116c2c3a354879f7753051bde9d1019a2327fd90536ff679fff25156637eb469
6
+ metadata.gz: 6ca64faa30a0f53b5dddcd69f5532e7c052d758a6880112da3f5bda98982c983db9a1097f46fbaf95e710f859330b6530063566b81f0b83f42a8634920b6fae9
7
+ data.tar.gz: b43b36960c210fd138c5f80c7d60f39cd84d5eb8cb784ef69ca6d9fb5112131a2b995f0aa1fc5b21fe264a24c49e75431384a7b0453e86b0c5da9707a7f05825
data/files/Berksfile CHANGED
@@ -1,5 +1,3 @@
1
+ # -*- coding: utf-8 -*-
1
2
  source 'https://supermarket.chef.io'
2
-
3
3
  metadata
4
-
5
- cookbook 'apt'
data/files/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  source 'https://rubygems.org'
3
3
 
4
- gem 'chef', '~> 12.0.3'
4
+ gem 'chef', '~> 12'
5
5
  gem 'berkshelf'
6
6
  gem 'rake'
7
7
 
data/files/rubocop.yml CHANGED
@@ -13,17 +13,3 @@ AllCops:
13
13
  Exclude:
14
14
  - cookbooks/**/*
15
15
  - vendor/**/*
16
-
17
- Encoding:
18
- Exclude:
19
- - metadata.rb
20
- - Gemfile
21
-
22
- NumericLiterals:
23
- Enabled: false
24
-
25
- LineLength:
26
- Enabled: false
27
-
28
- WordArray:
29
- MinSize: 3
@@ -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[:cookbook_path],
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
- ) if params[:license] != 'none'
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
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Knife skeleton version
3
3
  module KnifeSkeleton
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  MAJOR, MINOR, TINY = VERSION.split('.')
6
6
  end
@@ -4,9 +4,9 @@ driver_config:
4
4
  require_chef_omnibus: true
5
5
 
6
6
  platforms:
7
- - name: ubuntu-14.04
7
+ - name: ubuntu-14.04
8
8
 
9
9
  suites:
10
- - name: 'default'
11
- run_list:
12
- - recipe[<%= cookbook_name %>]
10
+ - name: default
11
+ run_list:
12
+ - recipe[<%= cookbook_name %>]
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  name '<%= cookbook_name %>'
2
3
  maintainer '<%= copyright %>'
3
4
  maintainer_email '<%= email %>'
@@ -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
@@ -1,6 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
-
3
- require 'rspec/expectations'
4
2
  require 'chefspec'
5
3
  require 'chefspec/berkshelf'
6
4
 
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.0
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-02-12 00:00:00.000000000 Z
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
- Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...
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.1
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...