knife-skeleton 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,49 @@
1
+ <%= cookbook_name %> Cookbook
2
+ <%= '='*"cookbook_name Cookbook".length %>
3
+ TODO: Enter the cookbook description here.
4
+
5
+ e.g.
6
+ This cookbook makes your favorite breakfast sandwich.
7
+
8
+ Requirements
9
+ TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.
10
+
11
+ e.g.
12
+ toaster <%= cookbook_name %> needs toaster to brown your bagel.
13
+
14
+ Attributes
15
+ TODO: List your cookbook attributes here.
16
+
17
+ <%= cookbook_name %>
18
+ Key Type Description Default
19
+ ['<%= cookbook_name %>']['bacon'] Boolean whether to include bacon true
20
+
21
+ Usage
22
+ <%= cookbook_name %>
23
+ TODO: Write usage instructions for each cookbook.
24
+
25
+ e.g.
26
+ Just include `<%= cookbook_name %>` in your node's `run_list`:
27
+
28
+ [code]
29
+ {
30
+ "name":"my_node",
31
+ "run_list": [
32
+ "recipe[<%= cookbook_name %>]"
33
+ ]
34
+ }
35
+ [/code]
36
+
37
+ Contributing
38
+ TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
39
+
40
+ e.g.
41
+ 1. Fork the repository on Github
42
+ 2. Create a named feature branch (like `add_component_x`)
43
+ 3. Write your change
44
+ 4. Write tests for your change (if applicable)
45
+ 5. Run the tests, ensuring they all pass
46
+ 6. Submit a Pull Request using Github
47
+
48
+ License and Authors
49
+ Authors: TODO: List authors
@@ -0,0 +1,9 @@
1
+ name '<%= cookbook_name %>'
2
+ maintainer '<%= copyright %>'
3
+ maintainer_email '<%= email %>'
4
+ license '<%= license_name %>'
5
+ description 'Installs/Configures <%= cookbook_name %>'
6
+ long_description IO.read(File.join(File.dirname(__FILE__), 'README.<%= readme_format %>'))
7
+ version '0.1.0'
8
+
9
+ depends 'apt'
@@ -0,0 +1,9 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Cookbook Name:: <%= cookbook_name %>
4
+ # Recipe:: default
5
+ #
6
+ # Copyright <%= Time.now.year %>, <%= copyright %>
7
+ #
8
+ <%= license_content %>
9
+ include_recipe 'apt'
@@ -0,0 +1,12 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ require_relative 'spec_helper'
4
+
5
+ describe '<%= cookbook_name %>::default' do
6
+ subject { ChefSpec::Runner.new.converge(described_recipe) }
7
+
8
+ # Write full examples using the `expect` syntax
9
+ it 'does includes recipes' do
10
+ expect(subject).to include_recipe('apt')
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ require 'rspec/expectations'
4
+ require 'chefspec'
5
+ require 'chefspec/berkshelf'
6
+
7
+ ChefSpec::Coverage.start! { add_filter '<%= cookbook_name %>' }
8
+
9
+ require 'chef/application'
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ require 'spec_helper'
4
+
5
+ describe service('ssh') do
6
+ it { should be_enabled }
7
+ it { should be_running }
8
+ end
@@ -0,0 +1,22 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ require 'serverspec'
4
+
5
+ include SpecInfra::Helper::Exec
6
+ include SpecInfra::Helper::DetectOS
7
+
8
+ begin
9
+ require 'rspec_junit_formatter'
10
+ rescue LoadError
11
+ require 'rubygems/dependency_installer'
12
+ Gem::DependencyInstaller.new.install('rspec_junit_formatter')
13
+ require 'rspec_junit_formatter'
14
+ end
15
+
16
+ RSpec.configure do |c|
17
+ c.before :all do
18
+ c.os = backend(Serverspec::Commands::Base).check_os
19
+ end
20
+ c.path = '/sbin:/usr/sbin:/usr/bin:/bin'
21
+ c.add_formatter 'RspecJunitFormatter', '/tmp/kitchen.xml'
22
+ end
metadata ADDED
@@ -0,0 +1,188 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: knife-skeleton
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Pierre Rambaud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: chef
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '0.10'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '0.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: erubis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.14'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '2.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '0.25'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '0.25'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
97
+ - !ruby/object:Gem::Dependency
98
+ name: fakefs
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '0.5'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '0.5'
111
+ description: ! 'Knife plugin to create skeleton with rubocop, chefspec, kitchen,
112
+
113
+ strainer, etc...
114
+
115
+ '
116
+ email:
117
+ - pierre.rambaud@numergy.com
118
+ executables: []
119
+ extensions: []
120
+ extra_rdoc_files: []
121
+ files:
122
+ - .gitignore
123
+ - .rubocop.yml
124
+ - .travis.yml
125
+ - Gemfile
126
+ - LICENSE
127
+ - README.md
128
+ - Rakefile
129
+ - files/Berksfile
130
+ - files/Gemfile
131
+ - files/Strainerfile
132
+ - files/gitignore
133
+ - files/licenses/apachev2
134
+ - files/licenses/gplv2
135
+ - files/licenses/gplv3
136
+ - files/licenses/mit
137
+ - files/rubocop.yml
138
+ - files/travis.yml
139
+ - knife_skeleton.gemspec
140
+ - lib/chef/knife/skeleton_create.rb
141
+ - lib/knife_skeleton/template.rb
142
+ - lib/knife_skeleton/version.rb
143
+ - spec/chef/knife/knife_skeleton_create_spec.rb
144
+ - spec/knife_skeleton/template_spec.rb
145
+ - spec/spec_helper.rb
146
+ - templates/.kitchen.yml.erb
147
+ - templates/CHANGELOG.md.erb
148
+ - templates/CHANGELOG.rdoc.erb
149
+ - templates/CHANGELOG.txt.erb
150
+ - templates/README.md.erb
151
+ - templates/README.rdoc.erb
152
+ - templates/README.txt.erb
153
+ - templates/metadata.rb.erb
154
+ - templates/recipes/default.rb.erb
155
+ - templates/spec/default_spec.rb.erb
156
+ - templates/spec/spec_helper.rb.erb
157
+ - templates/test/integration/default/serverspec/default_spec.rb.erb
158
+ - templates/test/integration/default/serverspec/spec_helper.rb.erb
159
+ homepage: https://github.com/Numergy/knife-skeleton
160
+ licenses:
161
+ - Apache 2.0
162
+ metadata: {}
163
+ post_install_message:
164
+ rdoc_options: []
165
+ require_paths:
166
+ - lib
167
+ required_ruby_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ! '>='
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ required_rubygems_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ requirements: []
178
+ rubyforge_project:
179
+ rubygems_version: 2.4.1
180
+ signing_key:
181
+ specification_version: 4
182
+ summary: Knife plugin to create skeleton with rubocop, chefspec, kitchen, strainer,
183
+ etc...
184
+ test_files:
185
+ - spec/chef/knife/knife_skeleton_create_spec.rb
186
+ - spec/knife_skeleton/template_spec.rb
187
+ - spec/spec_helper.rb
188
+ has_rdoc: