galvanize 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +242 -0
- data/LICENSE.txt +21 -0
- data/README.md +64 -0
- data/Rakefile +6 -0
- data/bin/console +12 -0
- data/bin/gal +10 -0
- data/bin/galvanize +10 -0
- data/bin/setup +8 -0
- data/galvanize.gemspec +25 -0
- data/lib/chef-dk/command/generator_commands/habichef.rb +82 -0
- data/lib/chef-dk/configurable-patch.rb +15 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/Berksfile +4 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/build_cookbook/README.md +146 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/build_cookbook/kitchen.yml +21 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/build_cookbook/test-fixture-recipe.rb +9 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/chefignore +109 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/cookbook_readmes/README-policy.md +9 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/cookbook_readmes/README.md +66 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/delivery-config.json +17 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/delivery-project.toml +36 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/gitignore +22 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/README.md +24 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/example/README.md +27 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/example/attributes/default.rb +8 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/example/metadata.rb +7 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/example/recipes/default.rb +9 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/data_bags/README.md +56 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/data_bags/example/example_item.json +4 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/dot-chef-repo.txt +6 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/environments/README.md +9 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/environments/example.json +13 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/policyfiles/README.md +24 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/roles/README.md +9 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/roles/example.json +13 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/spec_helper.rb +3 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/spec_helper_policyfile.rb +3 -0
- data/lib/chef-dk/skeletons/code_generator/metadata.rb +8 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/attribute.rb +13 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/build_cookbook.rb +177 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/cookbook.rb +161 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/cookbook_file.rb +25 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/habichef.rb +92 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/helpers.rb +21 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/policyfile.rb +9 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/recipe.rb +52 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/repo.rb +68 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/resource.rb +13 -0
- data/lib/chef-dk/skeletons/code_generator/recipes/template.rb +32 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/CHANGELOG.md.erb +11 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/LICENSE.all_rights.erb +3 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/LICENSE.apachev2.erb +201 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/LICENSE.gplv2.erb +339 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/LICENSE.gplv3.erb +674 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/LICENSE.mit.erb +21 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/Policyfile.rb.erb +25 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/README.md.erb +4 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/attribute.rb.erb +0 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/build_cookbook/Berksfile.erb +7 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/build_cookbook/metadata.rb.erb +10 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/build_cookbook/recipe.rb.erb +8 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/cookbook_file.erb +0 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/gitignore +28 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/habitat/README.md.erb +96 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/habitat/default.toml.erb +18 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/habitat/plan.sh.erb +16 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/helpers.rb.erb +39 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/inspec_default_test.rb.erb +16 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/kitchen.yml.erb +26 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/kitchen_dokken.yml.erb +31 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/kitchen_policyfile.yml.erb +33 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/metadata.rb.erb +20 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/policyfiles/base.rb.erb +30 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/recipe.rb.erb +5 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb +35 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/repo/gitignore.erb +128 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/resource.rb.erb +1 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/template.erb +0 -0
- data/lib/galvanize.rb +7 -0
- data/lib/galvanize/version.rb +3 -0
- metadata +130 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 487d4ab79b452fe83383d25dbbed7a11c05589e0f9ed483eeb041254d4b66fc4
|
4
|
+
data.tar.gz: 57052e68831bf4fcfb07576e8aeffa77dcd073c9b03d9fc3690934000e24642d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cf74be198638da4e7ee5751a1dc75bc63b80fe44dd2b8bddaa4372e8394f65c62d7a0e5641775a7c1036b34edaacbd5530a7ac206c5b4dddf636a674bb9d35bb
|
7
|
+
data.tar.gz: cf1e957e1590708b4e6822ff7007e96441b00b18c89d55d29bac2438e8636944bc0eccbb47460d3574735f3ab2f3cd02877c971eacf4b5e7d78a39d3981316f3
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at qubitrenegade@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in galvanize.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'chef'
|
9
|
+
gem 'chef-dk'
|
10
|
+
|
11
|
+
group :development do
|
12
|
+
gem 'bundler'
|
13
|
+
gem 'pry'
|
14
|
+
gem 'rake'
|
15
|
+
gem 'rspec'
|
16
|
+
gem 'rubocop'
|
17
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,242 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
galvanize (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
addressable (2.5.2)
|
10
|
+
public_suffix (>= 2.0.2, < 4.0)
|
11
|
+
ast (2.4.0)
|
12
|
+
builder (3.2.3)
|
13
|
+
chef (14.12.9)
|
14
|
+
addressable
|
15
|
+
bundler (>= 1.10)
|
16
|
+
chef-config (= 14.12.9)
|
17
|
+
chef-zero (>= 13.0)
|
18
|
+
diff-lcs (~> 1.2, >= 1.2.4)
|
19
|
+
erubis (~> 2.7)
|
20
|
+
ffi (~> 1.9, >= 1.9.25)
|
21
|
+
ffi-yajl (~> 2.2)
|
22
|
+
highline (~> 1.6, >= 1.6.9)
|
23
|
+
iniparse (~> 1.4)
|
24
|
+
mixlib-archive (>= 0.4, < 2.0)
|
25
|
+
mixlib-authentication (~> 2.1)
|
26
|
+
mixlib-cli (>= 1.7, < 3.0)
|
27
|
+
mixlib-log (>= 2.0.3, < 4.0)
|
28
|
+
mixlib-shellout (>= 2.4, < 4.0)
|
29
|
+
net-sftp (~> 2.1, >= 2.1.2)
|
30
|
+
net-ssh (~> 4.2)
|
31
|
+
net-ssh-multi (~> 1.2, >= 1.2.1)
|
32
|
+
ohai (~> 14.0)
|
33
|
+
plist (~> 3.2)
|
34
|
+
proxifier (~> 1.0)
|
35
|
+
rspec-core (~> 3.5)
|
36
|
+
rspec-expectations (~> 3.5)
|
37
|
+
rspec-mocks (~> 3.5)
|
38
|
+
rspec_junit_formatter (~> 0.2.0)
|
39
|
+
serverspec (~> 2.7)
|
40
|
+
specinfra (~> 2.10)
|
41
|
+
syslog-logger (~> 1.6)
|
42
|
+
uuidtools (~> 2.1.5)
|
43
|
+
chef-config (14.12.9)
|
44
|
+
addressable
|
45
|
+
fuzzyurl
|
46
|
+
mixlib-config (>= 2.2.12, < 4.0)
|
47
|
+
mixlib-shellout (>= 2.0, < 4.0)
|
48
|
+
tomlrb (~> 1.2)
|
49
|
+
chef-dk (3.8.14)
|
50
|
+
addressable (>= 2.3.5, < 2.6)
|
51
|
+
chef (~> 14.0)
|
52
|
+
chef-provisioning (~> 2.0)
|
53
|
+
cookbook-omnifetch (~> 0.5)
|
54
|
+
diff-lcs (~> 1.0)
|
55
|
+
ffi-yajl (>= 1.0, < 3.0)
|
56
|
+
minitar (~> 0.6)
|
57
|
+
mixlib-cli (~> 1.7)
|
58
|
+
mixlib-shellout (~> 2.0)
|
59
|
+
paint (~> 1.0)
|
60
|
+
solve (> 2.0, < 5.0)
|
61
|
+
chef-provisioning (2.7.6)
|
62
|
+
cheffish (>= 4.0, < 15.0)
|
63
|
+
inifile (>= 2.0.2)
|
64
|
+
mixlib-install (>= 1.0)
|
65
|
+
net-scp (~> 1.0)
|
66
|
+
net-ssh (>= 2.9, < 5.0)
|
67
|
+
net-ssh-gateway (> 1.2, < 3.0)
|
68
|
+
winrm (~> 2.0)
|
69
|
+
winrm-elevated (~> 1.0)
|
70
|
+
winrm-fs (~> 1.0)
|
71
|
+
chef-zero (14.0.12)
|
72
|
+
ffi-yajl (~> 2.2)
|
73
|
+
hashie (>= 2.0, < 4.0)
|
74
|
+
mixlib-log (>= 2.0, < 4.0)
|
75
|
+
rack (~> 2.0, >= 2.0.6)
|
76
|
+
uuidtools (~> 2.1)
|
77
|
+
cheffish (14.0.4)
|
78
|
+
chef-zero (~> 14.0)
|
79
|
+
net-ssh
|
80
|
+
coderay (1.1.2)
|
81
|
+
cookbook-omnifetch (0.8.1)
|
82
|
+
mixlib-archive (>= 0.4, < 2.0)
|
83
|
+
diff-lcs (1.3)
|
84
|
+
erubis (2.7.0)
|
85
|
+
ffi (1.10.0)
|
86
|
+
ffi-yajl (2.3.1)
|
87
|
+
libyajl2 (~> 1.2)
|
88
|
+
fuzzyurl (0.9.0)
|
89
|
+
gssapi (1.3.0)
|
90
|
+
ffi (>= 1.0.1)
|
91
|
+
gyoku (1.3.1)
|
92
|
+
builder (>= 2.1.2)
|
93
|
+
hashie (3.6.0)
|
94
|
+
highline (1.7.10)
|
95
|
+
httpclient (2.8.3)
|
96
|
+
inifile (3.0.0)
|
97
|
+
iniparse (1.4.4)
|
98
|
+
ipaddress (0.8.3)
|
99
|
+
jaro_winkler (1.5.2)
|
100
|
+
libyajl2 (1.2.0)
|
101
|
+
little-plugger (1.1.4)
|
102
|
+
logging (2.2.2)
|
103
|
+
little-plugger (~> 1.1)
|
104
|
+
multi_json (~> 1.10)
|
105
|
+
method_source (0.9.2)
|
106
|
+
minitar (0.8)
|
107
|
+
mixlib-archive (1.0.1)
|
108
|
+
mixlib-log
|
109
|
+
mixlib-authentication (2.1.1)
|
110
|
+
mixlib-cli (1.7.0)
|
111
|
+
mixlib-config (3.0.1)
|
112
|
+
tomlrb
|
113
|
+
mixlib-install (3.11.18)
|
114
|
+
mixlib-shellout
|
115
|
+
mixlib-versioning
|
116
|
+
thor
|
117
|
+
mixlib-log (3.0.1)
|
118
|
+
mixlib-shellout (2.4.4)
|
119
|
+
mixlib-versioning (1.2.7)
|
120
|
+
molinillo (0.6.6)
|
121
|
+
multi_json (1.13.1)
|
122
|
+
net-scp (1.2.1)
|
123
|
+
net-ssh (>= 2.6.5)
|
124
|
+
net-sftp (2.1.2)
|
125
|
+
net-ssh (>= 2.6.5)
|
126
|
+
net-ssh (4.2.0)
|
127
|
+
net-ssh-gateway (2.0.0)
|
128
|
+
net-ssh (>= 4.0.0)
|
129
|
+
net-ssh-multi (1.2.1)
|
130
|
+
net-ssh (>= 2.6.5)
|
131
|
+
net-ssh-gateway (>= 1.2.0)
|
132
|
+
net-telnet (0.1.1)
|
133
|
+
nori (2.6.0)
|
134
|
+
ohai (14.8.12)
|
135
|
+
chef-config (>= 12.8, < 15)
|
136
|
+
ffi (~> 1.9)
|
137
|
+
ffi-yajl (~> 2.2)
|
138
|
+
ipaddress
|
139
|
+
mixlib-cli (>= 1.7.0)
|
140
|
+
mixlib-config (>= 2.0, < 4.0)
|
141
|
+
mixlib-log (>= 2.0.1, < 4.0)
|
142
|
+
mixlib-shellout (>= 2.0, < 4.0)
|
143
|
+
plist (~> 3.1)
|
144
|
+
systemu (~> 2.6.4)
|
145
|
+
wmi-lite (~> 1.0)
|
146
|
+
paint (1.0.1)
|
147
|
+
parallel (1.17.0)
|
148
|
+
parser (2.6.3.0)
|
149
|
+
ast (~> 2.4.0)
|
150
|
+
plist (3.5.0)
|
151
|
+
proxifier (1.0.3)
|
152
|
+
pry (0.12.2)
|
153
|
+
coderay (~> 1.1.0)
|
154
|
+
method_source (~> 0.9.0)
|
155
|
+
public_suffix (3.0.3)
|
156
|
+
rack (2.0.7)
|
157
|
+
rainbow (3.0.0)
|
158
|
+
rake (12.3.2)
|
159
|
+
rspec (3.8.0)
|
160
|
+
rspec-core (~> 3.8.0)
|
161
|
+
rspec-expectations (~> 3.8.0)
|
162
|
+
rspec-mocks (~> 3.8.0)
|
163
|
+
rspec-core (3.8.0)
|
164
|
+
rspec-support (~> 3.8.0)
|
165
|
+
rspec-expectations (3.8.3)
|
166
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
167
|
+
rspec-support (~> 3.8.0)
|
168
|
+
rspec-its (1.3.0)
|
169
|
+
rspec-core (>= 3.0.0)
|
170
|
+
rspec-expectations (>= 3.0.0)
|
171
|
+
rspec-mocks (3.8.0)
|
172
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
173
|
+
rspec-support (~> 3.8.0)
|
174
|
+
rspec-support (3.8.0)
|
175
|
+
rspec_junit_formatter (0.2.3)
|
176
|
+
builder (< 4)
|
177
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
178
|
+
rubocop (0.68.1)
|
179
|
+
jaro_winkler (~> 1.5.1)
|
180
|
+
parallel (~> 1.10)
|
181
|
+
parser (>= 2.5, != 2.5.1.1)
|
182
|
+
rainbow (>= 2.2.2, < 4.0)
|
183
|
+
ruby-progressbar (~> 1.7)
|
184
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
185
|
+
ruby-progressbar (1.10.0)
|
186
|
+
rubyntlm (0.6.2)
|
187
|
+
rubyzip (1.2.2)
|
188
|
+
semverse (3.0.0)
|
189
|
+
serverspec (2.41.3)
|
190
|
+
multi_json
|
191
|
+
rspec (~> 3.0)
|
192
|
+
rspec-its
|
193
|
+
specinfra (~> 2.72)
|
194
|
+
sfl (2.3)
|
195
|
+
solve (4.0.2)
|
196
|
+
molinillo (~> 0.6)
|
197
|
+
semverse (>= 1.1, < 4.0)
|
198
|
+
specinfra (2.77.1)
|
199
|
+
net-scp
|
200
|
+
net-ssh (>= 2.7)
|
201
|
+
net-telnet (= 0.1.1)
|
202
|
+
sfl
|
203
|
+
syslog-logger (1.6.8)
|
204
|
+
systemu (2.6.5)
|
205
|
+
thor (0.20.3)
|
206
|
+
tomlrb (1.2.8)
|
207
|
+
unicode-display_width (1.5.0)
|
208
|
+
uuidtools (2.1.5)
|
209
|
+
winrm (2.3.2)
|
210
|
+
builder (>= 2.1.2)
|
211
|
+
erubis (~> 2.7)
|
212
|
+
gssapi (~> 1.2)
|
213
|
+
gyoku (~> 1.0)
|
214
|
+
httpclient (~> 2.2, >= 2.2.0.2)
|
215
|
+
logging (>= 1.6.1, < 3.0)
|
216
|
+
nori (~> 2.0)
|
217
|
+
rubyntlm (~> 0.6.0, >= 0.6.1)
|
218
|
+
winrm-elevated (1.1.1)
|
219
|
+
winrm (~> 2.0)
|
220
|
+
winrm-fs (~> 1.0)
|
221
|
+
winrm-fs (1.3.2)
|
222
|
+
erubis (~> 2.7)
|
223
|
+
logging (>= 1.6.1, < 3.0)
|
224
|
+
rubyzip (~> 1.1)
|
225
|
+
winrm (~> 2.0)
|
226
|
+
wmi-lite (1.0.2)
|
227
|
+
|
228
|
+
PLATFORMS
|
229
|
+
ruby
|
230
|
+
|
231
|
+
DEPENDENCIES
|
232
|
+
bundler
|
233
|
+
chef
|
234
|
+
chef-dk
|
235
|
+
galvanize!
|
236
|
+
pry
|
237
|
+
rake
|
238
|
+
rspec
|
239
|
+
rubocop
|
240
|
+
|
241
|
+
BUNDLED WITH
|
242
|
+
1.16.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 qubitrenegade
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Galvanize
|
2
|
+
|
3
|
+
This gem bundles some monkey-patching to extend the default ChefDK Generator (`chef generate`) and a wrapper script (`galvanize`) that includes the correct files before invoking `ChefDK::CLI.new().run`, which is dumb... there's got to be a way to include this gem, i.e. from the `knife.rb`, but I couldn't figure it out. So until such time as I figure a better way, settling for `galvanize generate`.
|
4
|
+
|
5
|
+
## Justification
|
6
|
+
|
7
|
+
I want to write a cookbook for a project template.
|
8
|
+
|
9
|
+
First I created [chef-skeleton](https://github.com/qubitrenegade/habichef-skeleton), the "clone, change variables, then add content" workflow is better than creating a project skeleton from scratch every time... but only just barely. Then I created [habichef_generator](https://github.com/qubitrenegade/habichef_generator_demo) cookbook. Running `chef generate cookbook habichef_name -g habichef_generator_cookbook` is just... awkward. And I don't have control over the variables as I'd like. Also, running a similar cookbook with chef in local mode doesn't work without sudo and then you need to manually `sudo chown myuser:myuser my_new_project`. [Cookiecutter](https://cookiecutter.readthedocs.io/en/latest/) is an interesting project, but trying to support python tools in a Ruby/Chef development toolchain has been problematic and poltically challenging. And Finally, I really like the idea of "Cookbook as project template". We already use Chef for everything, so why not project templates too?
|
10
|
+
|
11
|
+
This project leverages all of the great work by the folks at Chef and extends the abilities of the generator.
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
This should be installable as:
|
16
|
+
|
17
|
+
$ chef gem install galvanize
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Once installed, the `galvanize` (or `gal`) command effectively replaces the `chef` command. Refer to the [ChefDK Docs](https://github.com/chef/chef-dk/blob/master/README.md) for full ChefDK usage instructions.
|
22
|
+
|
23
|
+
The following documents the additions.
|
24
|
+
|
25
|
+
### Additional Generators
|
26
|
+
|
27
|
+
#### HabiChef
|
28
|
+
|
29
|
+
```bash
|
30
|
+
gal generate habichef <name> [options]
|
31
|
+
```
|
32
|
+
|
33
|
+
This generates a basic HabiChef skeleton. Based on [habichef-skeleton](https://github.com/qubitrenegade/habichef-skeleton) project.
|
34
|
+
|
35
|
+
#### Terraform
|
36
|
+
|
37
|
+
Coming Soon...
|
38
|
+
|
39
|
+
## Development
|
40
|
+
|
41
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
42
|
+
|
43
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
44
|
+
|
45
|
+
## Things todo/Help Wanted
|
46
|
+
|
47
|
+
* [ ] #1: How to load custom `code_generator` for only new generators.
|
48
|
+
* [ ] #2: Terraform Generator.
|
49
|
+
* [ ] #3: NodeJS project generator.
|
50
|
+
* [ ] #4: Implications of `chef-dk` as a gem dep.
|
51
|
+
* [ ] #5/#6: TESTS! Wow... tsk tsk. No tests...
|
52
|
+
* [ ] #9: CI Setup (TravisCI? or?)
|
53
|
+
|
54
|
+
## Contributing
|
55
|
+
|
56
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/qubitrenegade/galvanize. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
57
|
+
|
58
|
+
## License
|
59
|
+
|
60
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
61
|
+
|
62
|
+
## Code of Conduct
|
63
|
+
|
64
|
+
Everyone interacting in the Galvanize project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/qubitrenegade/galvanize/blob/master/CODE_OF_CONDUCT.md).
|