wood-stove 3.2.9000
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.travis.yml +17 -0
- data/CHANGELOG.md +112 -0
- data/Gemfile +2 -0
- data/LICENSE +202 -0
- data/README.md +121 -0
- data/Rakefile +24 -0
- data/bin/bake +6 -0
- data/bin/stove +4 -0
- data/features/plugins/community.feature +41 -0
- data/features/plugins/git.feature +40 -0
- data/features/step_definitions/community_steps.rb +23 -0
- data/features/step_definitions/config_steps.rb +7 -0
- data/features/step_definitions/cookbook_steps.rb +47 -0
- data/features/step_definitions/cucumber_steps.rb +12 -0
- data/features/step_definitions/git_steps.rb +67 -0
- data/features/support/env.rb +34 -0
- data/features/support/stove.pem +27 -0
- data/features/support/stove/git.rb +68 -0
- data/lib/stove.rb +85 -0
- data/lib/stove/cli.rb +191 -0
- data/lib/stove/community.rb +96 -0
- data/lib/stove/config.rb +76 -0
- data/lib/stove/cookbook.rb +120 -0
- data/lib/stove/cookbook/metadata.rb +206 -0
- data/lib/stove/error.rb +53 -0
- data/lib/stove/filter.rb +60 -0
- data/lib/stove/mash.rb +25 -0
- data/lib/stove/mixins/insideable.rb +13 -0
- data/lib/stove/mixins/instanceable.rb +24 -0
- data/lib/stove/mixins/optionable.rb +41 -0
- data/lib/stove/mixins/validatable.rb +11 -0
- data/lib/stove/packager.rb +153 -0
- data/lib/stove/plugins/base.rb +48 -0
- data/lib/stove/plugins/community.rb +18 -0
- data/lib/stove/plugins/git.rb +68 -0
- data/lib/stove/rake_task.rb +22 -0
- data/lib/stove/runner.rb +35 -0
- data/lib/stove/util.rb +56 -0
- data/lib/stove/validator.rb +68 -0
- data/lib/stove/version.rb +3 -0
- data/spec/integration/cookbook_spec.rb +42 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/generators.rb +128 -0
- data/spec/unit/cookbook/metadata_spec.rb +23 -0
- data/spec/unit/error_spec.rb +133 -0
- data/templates/errors/abstract_method.erb +5 -0
- data/templates/errors/community_key_validation_failed.erb +3 -0
- data/templates/errors/community_username_validation_failed.erb +3 -0
- data/templates/errors/git_clean_validation_failed.erb +1 -0
- data/templates/errors/git_failed.erb +5 -0
- data/templates/errors/git_repository_validation_failed.erb +3 -0
- data/templates/errors/git_up_to_date_validation_failed.erb +7 -0
- data/templates/errors/metadata_not_found.erb +1 -0
- data/templates/errors/server_unavailable.erb +1 -0
- data/templates/errors/stove_error.erb +1 -0
- data/wood-stove.gemspec +32 -0
- metadata +216 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 79aa636eedae615d9d60b1d765ac7ea8383238ba
|
4
|
+
data.tar.gz: ff2073954a941272baadf650de37acefd01021ed
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a649178312ea32512fa8ea880ddea4142ff6611be3cc31a91881624a260b99917d567173326656ec333ff402a1253a7b6750ebdcd90bb295194818ac20926a8c
|
7
|
+
data.tar.gz: 2dd7495ccd02d0cb8ffad17ba4458ae979d232df8674c48e0539072a5b1e7f00d44c5a5439b38058053f5dd05d86bf8ac33290d38d40e6dcb7acdda0bdad726b
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
rvm:
|
2
|
+
- 1.9.3
|
3
|
+
- 2.0.0
|
4
|
+
- 2.1
|
5
|
+
- 2.2
|
6
|
+
|
7
|
+
branches:
|
8
|
+
only:
|
9
|
+
- master
|
10
|
+
|
11
|
+
bundler_args: --jobs 7
|
12
|
+
|
13
|
+
before_script:
|
14
|
+
- git config --global user.email "ci@traivs-ci.org"
|
15
|
+
- git config --global user.name "Travis CI"
|
16
|
+
|
17
|
+
script: bundle exec rake
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
Stove CHANGELOG
|
2
|
+
===============
|
3
|
+
This is the Changelog for the Stove gem.
|
4
|
+
|
5
|
+
v3.2.7 (2015-04-16)
|
6
|
+
-------------------
|
7
|
+
- Use chef.io instead of getchef.com
|
8
|
+
- Ignore `vendor/` directory
|
9
|
+
- Do not publish extended metadata fields like `issues_url` and `source_url` by
|
10
|
+
default (GH-64, GH-72). These fields can be optionally added using the
|
11
|
+
new `--extended-metadata` flag.
|
12
|
+
- Add support for Ruby 2.2
|
13
|
+
- Use binmode when reading and writing the tgz (GH-64)
|
14
|
+
|
15
|
+
v3.2.6 (2015-03-18)
|
16
|
+
-------------------
|
17
|
+
- Include new metadata methods for Supermarket
|
18
|
+
|
19
|
+
v3.2.5 (2014-12-19)
|
20
|
+
-------------------
|
21
|
+
- Fix a bug with line endings when generating tarballs
|
22
|
+
|
23
|
+
v3.2.4 (2014-12-07)
|
24
|
+
-------------------
|
25
|
+
- Add support for `issues_url` and `source_url` metadata attributes
|
26
|
+
|
27
|
+
v3.2.3 (2014-10-12)
|
28
|
+
-------------------
|
29
|
+
- Only upload fully-compiled metadata (i.e. only upload metadata.json, not metadata.rb)
|
30
|
+
|
31
|
+
v3.2.2 (2014-08-07)
|
32
|
+
-------------------
|
33
|
+
- Fix a bug where files beginning with a dot (`.`) were not packaged
|
34
|
+
|
35
|
+
v3.2.1 (2014-07-16)
|
36
|
+
-------------------
|
37
|
+
- Fix a critical bug where nested directories are flattened
|
38
|
+
|
39
|
+
v3.2.0 (2014-07-15)
|
40
|
+
-------------------
|
41
|
+
**This version has been removed from Rubygems**
|
42
|
+
- Add the ability to "yank" (delete) a cookbook from the Supermarket
|
43
|
+
- Remove the `--category` flag (it is no longer honored)
|
44
|
+
- Fix a bug where the `resources/` folder was not uploaded
|
45
|
+
- Fix a bug when the cookbook name is not the same as the metdata name in the uploaded tarball
|
46
|
+
|
47
|
+
v3.1.0 (2014-07-10)
|
48
|
+
-------------------
|
49
|
+
**This version has been removed from Rubygems**
|
50
|
+
|
51
|
+
- Use the generated tempfile directly (instead of writing to disk and creating File objects)
|
52
|
+
- Add a default version constraint ('>= 0.0.0')
|
53
|
+
- Only package Ruby files under `recipes/` and similar directories
|
54
|
+
- Dynamically generate the metadata.json in memory (save disk IO)
|
55
|
+
- Use Rubygem's TarWrtier instead of minitar (removed dependency)
|
56
|
+
- Bump version of Chef API to support tempfile IO objects
|
57
|
+
|
58
|
+
v3.0.0 (2014-07-07)
|
59
|
+
-------------------
|
60
|
+
- Add support for signed git tags
|
61
|
+
- Require Ruby 1.9+
|
62
|
+
- Remove i18n in favor of ERB
|
63
|
+
- Remove solve gem
|
64
|
+
- Remove GitHub functionality
|
65
|
+
- Remove JIRA functionality
|
66
|
+
- Remove bump and devodd functionality
|
67
|
+
- Clear up confusion on Gemfile vs not Gemfile
|
68
|
+
- Always read tarball objects as binary
|
69
|
+
- End tempfiles in the correct extension (needed to detect mime_types)
|
70
|
+
- Bump required version of ChefAPI gem
|
71
|
+
- Remove unused errors and code
|
72
|
+
- Improved documentation
|
73
|
+
- Remove editor files (`.swp`, etc) before packaging
|
74
|
+
- Upgrade to RSpec 3
|
75
|
+
- Improve test coverage
|
76
|
+
- Publish to Supermarket by default
|
77
|
+
|
78
|
+
v2.0.0 (2014-04-04)
|
79
|
+
-------------------
|
80
|
+
- Completely refactor the runner for speed optimizations
|
81
|
+
- Introduce a new configuration file format
|
82
|
+
- Add i18n support
|
83
|
+
- Add Filters and validations that execute before any commands are run
|
84
|
+
- Autoload plugins and actions
|
85
|
+
- Improve help output by grouping options
|
86
|
+
- Trap Signal interrupts cleanly
|
87
|
+
- Remove formatters
|
88
|
+
- Switch to logify
|
89
|
+
- Introduce significantly more logging and log levels
|
90
|
+
- Remove HTTParty & Jiralicious in favor or Faraday
|
91
|
+
- Improve rake task to automatically perfom a minor bump when no version if given
|
92
|
+
- Persist data across the cookbook object
|
93
|
+
- Use singleton classes to save memory and loadtime
|
94
|
+
|
95
|
+
v1.1.0
|
96
|
+
------
|
97
|
+
- Check if the git remote is in sync with local branch before pushing
|
98
|
+
- Add support for bumping devodd releases
|
99
|
+
- Add a custom rake task
|
100
|
+
- Add ability to publish GitHub releases
|
101
|
+
- Fix CLI bug that didn't allow options to parse
|
102
|
+
- Add logging during release process
|
103
|
+
- Fix error where the community site does not give an adequate response
|
104
|
+
- Retry uploads 3 times in case the community site is being lame
|
105
|
+
|
106
|
+
v1.0.1
|
107
|
+
------
|
108
|
+
- Fix a bug where `--log-level` was being ignored
|
109
|
+
|
110
|
+
v1.0.0
|
111
|
+
------
|
112
|
+
- Initial release
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2013 Seth Vargo <sethvargo@gmail.com>
|
190
|
+
Copyright 2013 Opscode, Inc
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
Stove
|
2
|
+
=====
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/stove.svg?style=flat-square)][gem]
|
4
|
+
[![Build Status](http://img.shields.io/travis/sethvargo/stove.svg?style=flat-square)][travis]
|
5
|
+
|
6
|
+
[gem]: https://rubygems.org/gems/stove
|
7
|
+
[travis]: http://travis-ci.org/sethvargo/stove
|
8
|
+
|
9
|
+
A utility for releasing and managing Chef Cookbooks. It will:
|
10
|
+
|
11
|
+
- Tag and push a new release to git
|
12
|
+
- Upload the cookbook to a cookbook share (such as Supermarket)
|
13
|
+
|
14
|
+
|
15
|
+
Why?
|
16
|
+
----
|
17
|
+
Existing tools to package cookbooks (such as [Knife Community](https://github.com/miketheman/knife-community) and `knife cookbook site share`) require a dependency on Chef. Because of thier dependency on Chef, they enforce the use of a "cookbook repo". Especially with the evolution of [Berkshelf](https://github.com/RiotGames/berkshelf), cookbooks are individualized artifacts and are often contained in their own repositories. [stove](https://github.com/sethvargo/stove) is **cookbook-centric, rather than Chef-centric**.
|
18
|
+
|
19
|
+
|
20
|
+
Installation
|
21
|
+
------------
|
22
|
+
1. Add Stove to your project's Gemfile:
|
23
|
+
|
24
|
+
gem 'stove'
|
25
|
+
|
26
|
+
2. Run the `bundle` command to install:
|
27
|
+
|
28
|
+
$ bundle install --binstubs
|
29
|
+
|
30
|
+
|
31
|
+
Configuration
|
32
|
+
-------------
|
33
|
+
Stove requires your username and private key to upload a cookbook. You can pass these to each command call, or you can set them Stove:
|
34
|
+
|
35
|
+
```bash
|
36
|
+
$ stove login --username sethvargo --key ~/.chef/sethvargo.pem
|
37
|
+
```
|
38
|
+
|
39
|
+
These values will be saved in Stove's configuration file (`~/.stove`) and persisted across your workstation.
|
40
|
+
|
41
|
+
The default publishing endpoint is the [Chef Supermarket](https://supermarket.chef.io), but this is configurable. If you want to publish to an internal community site, you can specify the `--endpoint` value:
|
42
|
+
|
43
|
+
```bash
|
44
|
+
$ stove --endpoint https://internal-cookbook-store.example.com
|
45
|
+
```
|
46
|
+
|
47
|
+
or for a private supermarket using the [supermarket](https://supermarket.chef.io/cookbooks/supermarket) cookbook:
|
48
|
+
|
49
|
+
```bash
|
50
|
+
$ stove --endpoint https://internal-cookbook-store.example.com/api/v1
|
51
|
+
```
|
52
|
+
|
53
|
+
Please note: depending on which version of Chef and which version of Supermarket you are running, you may support the new "extended" metadata fields. By default, Stove reads but does not write these new fields when uploading cookbooks because it is not backwards compatible. If you are running Chef 12+ and have the latest version of Supermarket installed, you can specify the `--extended-metadata` flag to include these values in the generated metadata:
|
54
|
+
|
55
|
+
```bash
|
56
|
+
$ stove --extended-metadata
|
57
|
+
```
|
58
|
+
|
59
|
+
Usage
|
60
|
+
-----
|
61
|
+
There are two ways to use Stove. You can either use the `stove` command directly or use the embedded rake task.
|
62
|
+
|
63
|
+
### Command
|
64
|
+
Execute the `stove` command from inside the root of a cookbook:
|
65
|
+
|
66
|
+
```bash
|
67
|
+
$ bin/stove
|
68
|
+
```
|
69
|
+
|
70
|
+
This will package (as a tarball) the cookbook in the current working directory, tag a new version, push to git, and publish to a cookbook share.
|
71
|
+
|
72
|
+
### Rake task
|
73
|
+
If you are familiar with the Bundler approach to publishing Ruby gems, this approach will feel very familiar. Simply add the following to your `Rakefile`:
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
require 'stove/rake_task'
|
77
|
+
Stove::RakeTask.new
|
78
|
+
```
|
79
|
+
|
80
|
+
And then use rake to publish the cookbook:
|
81
|
+
|
82
|
+
```bash
|
83
|
+
$ bin/rake publish
|
84
|
+
```
|
85
|
+
|
86
|
+
|
87
|
+
Contributing
|
88
|
+
------------
|
89
|
+
1. Fork it
|
90
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
91
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
92
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
93
|
+
5. Create new Pull Request
|
94
|
+
|
95
|
+
|
96
|
+
See Also
|
97
|
+
--------
|
98
|
+
- [Knife Community](https://github.com/miketheman/knife-community)
|
99
|
+
- [Emeril](https://github.com/fnichol/emeril)
|
100
|
+
|
101
|
+
|
102
|
+
License & Authors
|
103
|
+
-----------------
|
104
|
+
- Author: Seth Vargo (sethvargo@gmail.com)
|
105
|
+
|
106
|
+
```text
|
107
|
+
Copyright 2013-2014 Seth Vargo <sethvargo@gmail.com>
|
108
|
+
Copyright 2013-2014 Chef Software, Inc
|
109
|
+
|
110
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
111
|
+
you may not use this file except in compliance with the License.
|
112
|
+
You may obtain a copy of the License at
|
113
|
+
|
114
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
115
|
+
|
116
|
+
Unless required by applicable law or agreed to in writing, software
|
117
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
118
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
119
|
+
See the License for the specific language governing permissions and
|
120
|
+
limitations under the License.
|
121
|
+
```
|