chef-flavor-pan 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +22 -3
- data/lib/chef_gen/flavor/base.rb +9 -11
- data/lib/chef_gen/flavor/new.rb +9 -11
- data/lib/chef_gen/flavor/review.rb +9 -11
- data/pan.gemspec +3 -1
- data/{base/code_generator → shared/flavor/base}/files/default/Berksfile +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/Gemfile +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/LICENSE +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/Thorfile +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/_chef_client.rb +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/_defaults_linux.rb +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/_defaults_windows.rb +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/chefignore +0 -0
- data/{base/code_generator → shared/flavor/base}/files/default/gitignore +0 -0
- data/shared/flavor/base/metadata.rb +2 -0
- data/{base/code_generator → shared/flavor/base}/recipes/cookbook.rb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/.kitchen.yml.erb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/CHANGELOG.md.erb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/LICENSE.all_rights.erb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/LICENSE.apache2.erb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/README.md.erb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/default_attributes.rb.erb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/default_recipe.rb.erb +0 -0
- data/{base/code_generator → shared/flavor/base}/templates/default/metadata.rb.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/files/default/Berksfile +0 -0
- data/{new/code_generator → shared/flavor/new}/files/default/Gemfile +0 -0
- data/{new/code_generator → shared/flavor/new}/files/default/LICENSE +0 -0
- data/{new/code_generator → shared/flavor/new}/files/default/Thorfile +0 -0
- data/{new/code_generator → shared/flavor/new}/files/default/chefignore +0 -0
- data/{new/code_generator → shared/flavor/new}/files/default/gitignore +0 -0
- data/shared/flavor/new/metadata.rb +2 -0
- data/{new/code_generator → shared/flavor/new}/recipes/cookbook.rb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/.kitchen.yml.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/CHANGELOG.md.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/LICENSE.all_rights.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/LICENSE.apache2.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/README.md.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/default_attributes.rb.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/default_recipe.rb.erb +0 -0
- data/{new/code_generator → shared/flavor/new}/templates/default/metadata.rb.erb +0 -0
- data/{review/code_generator → shared/flavor/review}/files/default/Berksfile +0 -0
- data/{review/code_generator → shared/flavor/review}/files/default/Gemfile +0 -0
- data/{review/code_generator → shared/flavor/review}/files/default/LICENSE +0 -0
- data/{review/code_generator → shared/flavor/review}/files/default/Thorfile +0 -0
- data/{review/code_generator → shared/flavor/review}/files/default/chefignore +0 -0
- data/{review/code_generator → shared/flavor/review}/files/default/gitignore +0 -0
- data/shared/flavor/review/metadata.rb +2 -0
- data/{review/code_generator → shared/flavor/review}/recipes/cookbook.rb +0 -0
- metadata +63 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf08ac6462062b42db73a158f888a38441b88b3
|
4
|
+
data.tar.gz: e1f3e5f1fa4706dcbbaa06e699c9c2215ca44b1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15ed97fcba07aae84c64b8926fece021b8168bf0c11e2fbbf09a899231a51625f12d162efaad9c103ca5a333cd0e672373d738bfbab1fc16d2c84663824fd855
|
7
|
+
data.tar.gz: 5ff3dd8f23dab85abbbecf081a40878bd1f8a9eac7321565488d761f05a2931d15e874ed442bcc26fe836329e4a38ad524b8e91902dc14da8fbceea1adf92748
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Pan Example Cookbook Generator
|
2
2
|
|
3
|
+
## Release 3.0.0 2015/09/22
|
4
|
+
|
5
|
+
* Large refactor for chef-gen-flavors 0.9.1+. Note that this release of pan will now only work on chef-gen-flavors 0.9.1+.
|
6
|
+
* Support for ChefDK 0.7.0.
|
7
|
+
|
3
8
|
## Release 2.0.0 2015/06/03
|
4
9
|
|
5
10
|
* Massive overhaul. Now uses [chef-gen-flavors](https://rubygems.org/gems/chef-gen-flavors) and provides several different flavors of cookbook generators for you to consume.
|
data/README.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
-
# pan
|
1
|
+
# pan
|
2
2
|
|
3
3
|
Pan is a Chef cookbook generator using [chef-gen-flavors](https://rubygems.org/gems/chef-gen-flavors). You can use it out of the box as an opinionated way of creating new cookbooks, or modify it to meet your organization needs.
|
4
4
|
|
5
|
+
<sub><sup>パン</sup></sub>
|
6
|
+
|
7
|
+
## Features
|
8
|
+
|
9
|
+
- Automatically create boilerplate files for cookbooks.
|
10
|
+
- Drive organizational policy by setting standards and good defaults for what a cookbook should look like.
|
11
|
+
- Review existing cookbooks during code reviews or during your cookbook build.
|
12
|
+
- Automatically generate examples for developers brand new to Chef.
|
13
|
+
|
5
14
|
## Install
|
6
15
|
|
7
16
|
- To get started, you'll need to install chef-gen-flavors, a gem that allows you to have multiple types of generators.
|
@@ -28,6 +37,16 @@ end
|
|
28
37
|
|
29
38
|
`chef generate cookbook my_cookbook_name`
|
30
39
|
|
40
|
+
```
|
41
|
+
[ChefGen Flavor Selector]: Flavors on the menu
|
42
|
+
1. pan_review: Review an existing cookbook and validate its correctness.
|
43
|
+
2. pan_new: Generate a new cookbook with good defaults.
|
44
|
+
3. pan_base: Generate a base cookbook for organization wide policy.
|
45
|
+
[ChefGen Flavor Selector]: Enter selection:
|
46
|
+
```
|
47
|
+
|
48
|
+
`2`
|
49
|
+
|
31
50
|
```
|
32
51
|
echohack:desktop echohack$ chef generate cookbook my_cookbook_name
|
33
52
|
Compiling Cookbooks...
|
@@ -107,8 +126,8 @@ Recipe: new::cookbook
|
|
107
126
|
## Supported Platforms
|
108
127
|
|
109
128
|
### Tested And Validated On
|
110
|
-
* Mac OSX 10.10 with ChefDK 0.
|
111
|
-
* Windows 7 with ChefDK 0.
|
129
|
+
* Mac OSX 10.10 with ChefDK 0.7.0 and chef-gen-flavors 0.9.1
|
130
|
+
* Windows 7 with ChefDK 0.7.0 and chef-gen-flavors 0.9.1
|
112
131
|
|
113
132
|
ChefDK 0.3.6 and higher all likely work, but previous versions were not tested and validated.
|
114
133
|
|
data/lib/chef_gen/flavor/base.rb
CHANGED
@@ -3,19 +3,17 @@ require 'chef_gen/snippets'
|
|
3
3
|
|
4
4
|
module ChefGen
|
5
5
|
module Flavor
|
6
|
-
class PanBase < FlavorBase
|
7
|
-
|
6
|
+
class PanBase < ChefGen::FlavorBase
|
7
|
+
NAME = 'pan_base'
|
8
|
+
DESC = 'Generate a base cookbook for organization wide policy.'
|
8
9
|
VERSION = '1.0.0'
|
9
|
-
class << self
|
10
|
-
def description
|
11
|
-
'Generate a base cookbook for organization wide policy.'
|
12
|
-
end
|
13
10
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
def initialize(temp_path: nil, type: nil, recipe: nil)
|
12
|
+
super
|
13
|
+
end
|
14
|
+
|
15
|
+
do_add_content do
|
16
|
+
@tocopy << [File.expand_path(File.join(static_content_path(__FILE__, 'base'))) + '/.']
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
data/lib/chef_gen/flavor/new.rb
CHANGED
@@ -3,19 +3,17 @@ require 'chef_gen/snippets'
|
|
3
3
|
|
4
4
|
module ChefGen
|
5
5
|
module Flavor
|
6
|
-
class PanNew < FlavorBase
|
7
|
-
|
6
|
+
class PanNew < ChefGen::FlavorBase
|
7
|
+
NAME = 'pan_new'
|
8
|
+
DESC = 'Generate a new cookbook with good defaults.'
|
8
9
|
VERSION = '1.0.0'
|
9
|
-
class << self
|
10
|
-
def description
|
11
|
-
'Generate a new cookbook with good defaults.'
|
12
|
-
end
|
13
10
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
def initialize(temp_path: nil, type: nil, recipe: nil)
|
12
|
+
super
|
13
|
+
end
|
14
|
+
|
15
|
+
do_add_content do
|
16
|
+
@tocopy << [File.expand_path(File.join(static_content_path(__FILE__, 'new'))) + '/.']
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
@@ -3,19 +3,17 @@ require 'chef_gen/snippets'
|
|
3
3
|
|
4
4
|
module ChefGen
|
5
5
|
module Flavor
|
6
|
-
class PanReview < FlavorBase
|
7
|
-
|
6
|
+
class PanReview < ChefGen::FlavorBase
|
7
|
+
NAME = 'pan_review'
|
8
|
+
DESC = 'Review an existing cookbook and validate its correctness.'
|
8
9
|
VERSION = '1.0.0'
|
9
|
-
class << self
|
10
|
-
def description
|
11
|
-
'Review an existing cookbook and validate its correctness.'
|
12
|
-
end
|
13
10
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
def initialize(temp_path: nil, type: nil, recipe: nil)
|
12
|
+
super
|
13
|
+
end
|
14
|
+
|
15
|
+
do_add_content do
|
16
|
+
@tocopy << [File.expand_path(File.join(static_content_path(__FILE__, 'review'))) + '/.']
|
19
17
|
end
|
20
18
|
end
|
21
19
|
end
|
data/pan.gemspec
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'chef-flavor-pan'
|
4
|
-
s.version = '
|
4
|
+
s.version = '3.0.0'
|
5
|
+
|
6
|
+
s.add_runtime_dependency('chef-gen-flavor-base', ['~> 0.9'])
|
5
7
|
|
6
8
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
7
9
|
s.require_paths = ['lib']
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-flavor-pan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Echols
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
-
dependencies:
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: chef-gen-flavor-base
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.9'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.9'
|
13
27
|
description: A Chef automatic cookbook generator for [chef-gen-flavors](https://rubygems.org/gems/chef-gen-flavors).\n\n
|
14
28
|
You can use it out of the box as an opinionated way of creating new cookbooks, or
|
15
29
|
modify it to meet your organization needs.
|
@@ -22,55 +36,59 @@ extra_rdoc_files:
|
|
22
36
|
files:
|
23
37
|
- .gitignore
|
24
38
|
- .rubocop.yml
|
25
|
-
- base/code_generator/files/default/_chef_client.rb
|
26
|
-
- base/code_generator/files/default/_defaults_linux.rb
|
27
|
-
- base/code_generator/files/default/_defaults_windows.rb
|
28
|
-
- base/code_generator/files/default/Berksfile
|
29
|
-
- base/code_generator/files/default/chefignore
|
30
|
-
- base/code_generator/files/default/Gemfile
|
31
|
-
- base/code_generator/files/default/gitignore
|
32
|
-
- base/code_generator/files/default/LICENSE
|
33
|
-
- base/code_generator/files/default/Thorfile
|
34
|
-
- base/code_generator/recipes/cookbook.rb
|
35
|
-
- base/code_generator/templates/default/.kitchen.yml.erb
|
36
|
-
- base/code_generator/templates/default/CHANGELOG.md.erb
|
37
|
-
- base/code_generator/templates/default/default_attributes.rb.erb
|
38
|
-
- base/code_generator/templates/default/default_recipe.rb.erb
|
39
|
-
- base/code_generator/templates/default/LICENSE.all_rights.erb
|
40
|
-
- base/code_generator/templates/default/LICENSE.apache2.erb
|
41
|
-
- base/code_generator/templates/default/metadata.rb.erb
|
42
|
-
- base/code_generator/templates/default/README.md.erb
|
43
39
|
- CHANGELOG.md
|
44
40
|
- lib/chef_gen/flavor/base.rb
|
45
41
|
- lib/chef_gen/flavor/new.rb
|
46
42
|
- lib/chef_gen/flavor/review.rb
|
47
43
|
- LICENSE
|
48
|
-
- new/code_generator/files/default/Berksfile
|
49
|
-
- new/code_generator/files/default/chefignore
|
50
|
-
- new/code_generator/files/default/Gemfile
|
51
|
-
- new/code_generator/files/default/gitignore
|
52
|
-
- new/code_generator/files/default/LICENSE
|
53
|
-
- new/code_generator/files/default/Thorfile
|
54
|
-
- new/code_generator/recipes/cookbook.rb
|
55
|
-
- new/code_generator/templates/default/.kitchen.yml.erb
|
56
|
-
- new/code_generator/templates/default/CHANGELOG.md.erb
|
57
|
-
- new/code_generator/templates/default/default_attributes.rb.erb
|
58
|
-
- new/code_generator/templates/default/default_recipe.rb.erb
|
59
|
-
- new/code_generator/templates/default/LICENSE.all_rights.erb
|
60
|
-
- new/code_generator/templates/default/LICENSE.apache2.erb
|
61
|
-
- new/code_generator/templates/default/metadata.rb.erb
|
62
|
-
- new/code_generator/templates/default/README.md.erb
|
63
44
|
- pan.gemspec
|
64
45
|
- README.md
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
46
|
+
- shared/flavor/base/.DS_Store
|
47
|
+
- shared/flavor/base/files/default/_chef_client.rb
|
48
|
+
- shared/flavor/base/files/default/_defaults_linux.rb
|
49
|
+
- shared/flavor/base/files/default/_defaults_windows.rb
|
50
|
+
- shared/flavor/base/files/default/Berksfile
|
51
|
+
- shared/flavor/base/files/default/chefignore
|
52
|
+
- shared/flavor/base/files/default/Gemfile
|
53
|
+
- shared/flavor/base/files/default/gitignore
|
54
|
+
- shared/flavor/base/files/default/LICENSE
|
55
|
+
- shared/flavor/base/files/default/Thorfile
|
56
|
+
- shared/flavor/base/metadata.rb
|
57
|
+
- shared/flavor/base/recipes/cookbook.rb
|
58
|
+
- shared/flavor/base/templates/default/.kitchen.yml.erb
|
59
|
+
- shared/flavor/base/templates/default/CHANGELOG.md.erb
|
60
|
+
- shared/flavor/base/templates/default/default_attributes.rb.erb
|
61
|
+
- shared/flavor/base/templates/default/default_recipe.rb.erb
|
62
|
+
- shared/flavor/base/templates/default/LICENSE.all_rights.erb
|
63
|
+
- shared/flavor/base/templates/default/LICENSE.apache2.erb
|
64
|
+
- shared/flavor/base/templates/default/metadata.rb.erb
|
65
|
+
- shared/flavor/base/templates/default/README.md.erb
|
66
|
+
- shared/flavor/new/.DS_Store
|
67
|
+
- shared/flavor/new/files/default/Berksfile
|
68
|
+
- shared/flavor/new/files/default/chefignore
|
69
|
+
- shared/flavor/new/files/default/Gemfile
|
70
|
+
- shared/flavor/new/files/default/gitignore
|
71
|
+
- shared/flavor/new/files/default/LICENSE
|
72
|
+
- shared/flavor/new/files/default/Thorfile
|
73
|
+
- shared/flavor/new/metadata.rb
|
74
|
+
- shared/flavor/new/recipes/cookbook.rb
|
75
|
+
- shared/flavor/new/templates/default/.kitchen.yml.erb
|
76
|
+
- shared/flavor/new/templates/default/CHANGELOG.md.erb
|
77
|
+
- shared/flavor/new/templates/default/default_attributes.rb.erb
|
78
|
+
- shared/flavor/new/templates/default/default_recipe.rb.erb
|
79
|
+
- shared/flavor/new/templates/default/LICENSE.all_rights.erb
|
80
|
+
- shared/flavor/new/templates/default/LICENSE.apache2.erb
|
81
|
+
- shared/flavor/new/templates/default/metadata.rb.erb
|
82
|
+
- shared/flavor/new/templates/default/README.md.erb
|
83
|
+
- shared/flavor/review/.DS_Store
|
84
|
+
- shared/flavor/review/files/default/Berksfile
|
85
|
+
- shared/flavor/review/files/default/chefignore
|
86
|
+
- shared/flavor/review/files/default/Gemfile
|
87
|
+
- shared/flavor/review/files/default/gitignore
|
88
|
+
- shared/flavor/review/files/default/LICENSE
|
89
|
+
- shared/flavor/review/files/default/Thorfile
|
90
|
+
- shared/flavor/review/metadata.rb
|
91
|
+
- shared/flavor/review/recipes/cookbook.rb
|
74
92
|
homepage: https://github.com/echohack/pan
|
75
93
|
licenses:
|
76
94
|
- apache2
|