summaryrefslogtreecommitdiff
path: root/Rakefile
Commit message (Collapse)AuthorAgeFilesLines
* Avoid spellchecking files twice in one run.fail-early-with-cspell-syntax-errorPete Higgins2020-06-081-2/+2
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Add descriptions to rake tasks.Pete Higgins2020-05-181-0/+2
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Fix chefstyle violations.Pete Higgins2020-05-181-1/+1
|
* Remove check for cspell from Rakefile.Pete Higgins2020-05-181-12/+8
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* More things clear of spellcheck violations.Pete Higgins2020-05-181-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Fix spellcheck tasks to use cspell globs rather than bash.Pete Higgins2020-05-181-2/+2
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Add rake tasks for spellchecker.Pete Higgins2020-05-181-0/+16
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Merge pull request #9739 from chef/robb/reorder-gem-installs-in-hab-buildTim Smith2020-05-041-16/+25
|\ | | | | fix Habitat Windows package build
| * give good names to the rake tasks that run before installRobb Kidd2020-04-281-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | Renamed "super_install" to something a bit more descriptive and added a description. Moved the rendering of the powershell extension out of "super_install" and into its own named task. These are both now under a pre_install namespace and included in a 'pre_install:all' task. The 'install' task now depends on 'pre_install:all`. Here's hoping names here will help future humans (us) when dealing with these tasks. Signed-off-by: Robb Kidd <robb@thekidds.org>
* | Fixes to support unbundled rake uselcg/support-unbundled-rakeLamont Granquist2020-04-271-0/+5
|/ | | | | | | | | | | | | | | We're using Bundler::GemHelper without requiring it We're requiring `lib/chef/dist.rb` which requires files out of `chef-config/lib/chef-config` which will escape into the main fileset if we don't push that libdir on there. (Also: all of `lib/chef/dist.rb` and `chef-config/lib/chef-config/dist.rb` needs to be pushed into chef-utils and reading values into `lib/chef/dist.rb` from the Chef::Config itself seems like the wrong flow of information) Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Templating powershell extensions to inject distro constantsMarc Chamberland2020-02-241-0/+9
| | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
* Don't ship the extra rake tasks in the gemTim Smith2019-11-151-4/+8
| | | | | | | We only need the rspec task which gets run from within the gem artifact in the test phase. Skips all the other stuff. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-3/+5
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Rework the docs.rb script as a Rake taskTim Smith2019-06-261-0/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* quote fix for chefstyleBryan McLellan2019-05-071-1/+1
| | | | Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Accept-no-persist the license in the Rakefilelcg/rakefile-license-acceptLamont Granquist2019-05-061-0/+2
| | | | | | | | | We should probably push all the travis tests through the rakefile at some point and centralize this, and make rake the entrypoint which sets the env var, but we'd need rake tasks for the external and kitchen tests. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove chef-* binstubs from chef gemLamont Granquist2019-04-291-0/+7
| | | | | | | | | | | | | | | | This is for the relicensing effort. Note that this PR leaves the knife and ohai binstubs still in the gem(s) while that discussion is still ongoing. This PR extracts the binstubs to chef-binstubs gem which is not intended to be redistributed outside of the omnibus chef binaries. A blank gem for chef-binstubs has been pushed to rubygems.org for obvious security concerns and so that bundler/rubygems can resolve the gem Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove the legacy maintainer filesTim Smith2019-04-231-2/+1
| | | | | | This process is being replaced with our new owners process as outlined in https://github.com/chef/chef-oss-practices Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the CBGBNathen Harvey2018-09-061-1/+0
| | | | | | See also https://github.com/chef/chef-rfc/pull/322 Signed-off-by: Nathen Harvey <nharvey@chef.io>
* Merge pull request #7585 from chef/instructionsTim Smith2018-08-241-1/+1
|\ | | | | Update some build / updating instructions for development
| * Update some build / updating instructions for developmentinstructionsTim Smith2018-08-241-1/+1
| | | | | | | | | | | | | | | | Update the readme with the correct rake tasks to build chef Fix a typo in the rake comments Add a comment we have in DK to remind folks that they need to update the deps after changing the overrides. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Simplify / fix our yard doc Rake taskTim Smith2018-08-231-10/+6
|/ | | | | | | | | We were trying to parse out a readme file that doesn't exist and the license file which produced errors We namespaced the task in a way we don't do anywhere else. This matches our other gems now Tell people to use bundler in the errors instead of gem installing things We required rubygems which is not necessary Signed-off-by: Tim Smith <tsmith@chef.io>
* Build the appropriate chef gem on WindowsTim Smith2018-08-231-1/+3
| | | | | | | | This allows us to remove similar logic from the omnibus-software definition and allows this rake command to actually work for developers on Windows. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix a style issuekill_old_bumpsTim Smith2018-08-221-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Make rake install install both chef and chef-configTim Smith2018-08-221-1/+10
| | | | | | A simple way to make it reach back to call rake install on chef-config first. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add back the install tasksTim Smith2018-08-221-0/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the whole chef-config package task classTim Smith2018-08-221-8/+0
| | | | | | We handle this version bump with expeditor now. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the rdoc taskTim Smith2018-08-221-1/+0
| | | | | | No need for this anymore Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove old version logic from the RakefileTim Smith2018-08-221-4/+1
| | | | | | I believe this is all leftover from github changelog generator Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/MutableConstantLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update Expeditor config to use new Merge and Artifact Actionstduffield/use-new-artifact-actionsTom Duffield2017-07-241-11/+0
| | | | | | | | | | Chef Expeditor now supports built in merge and artifact actions which allow us to reduce the burden of duplicating common processes across all our repositories. This change introduces several of these built_in functions, replacing functionality that was previously kept in our Rakefile. Signed-off-by: Tom Duffield <tom@chef.io>
* Don’t use VersionString in chef-config because it doesn’t have access to ↵Noah Kantrowitz2017-05-251-0/+1
| | | | | | that class. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Better handle version bumpingtduffield/update-version-bumpingTom Duffield2017-02-221-19/+1
| | | | Signed-off-by: Tom Duffield <tom@chef.io>
* Make sure Dockerfile is kept up to dateTom Duffield2016-12-071-0/+9
| | | | | | | | The build system passes in the necessary build arguments, buts its beneficial to have the Dockerfile keep up to date with what the latest stable version is in case people want to build their own. Signed-off-by: Tom Duffield <tom@chef.io>
* Add rake task for generator release annoucnementsTom Duffield2016-11-211-0/+1
| | | | | | | | | To ensure consistency, and to let users get the information they want/need at a glance, we're introducing release announcement templates. The Chef release team will use these tasks to generate the release announcements before posting them to Discourse. Signed-off-by: Tom Duffield <tom@chef.io>
* Add automation for bumping major/minor versionTom Duffield2016-11-091-0/+16
| | | | Signed-off-by: Tom Duffield <tom@chef.io>
* small change to test bump botMatt Wrock2016-10-061-1/+1
| | | | Signed-off-by: Matt Wrock <matt@mattwrock.com>
* Do not use bundle install to update Gemfile.lock after version bumpjk/crazy-version-bumpJohn Keiser2016-06-171-2/+3
|
* Don't use berks when bumping version--can't possibly change.jk/version-without-berksJohn Keiser2016-04-181-3/+1
| | | | Just change the top level bundle
* Make gemfile_util capable of copying groups overJohn Keiser2016-04-181-1/+3
|
* Simplify external tests and make them work with Gemfile.lockJohn Keiser2016-04-181-14/+1
|
* Pin everything down with Gemfile.lock, add rake dependencies to updateJohn Keiser2016-04-181-0/+3
|
* Require chef/version since it's used herejk/require-what-you-useJohn Keiser2016-03-291-0/+1
|
* guard against changelog generator not being installedtm/option_changelog_generatorThom May2016-03-031-6/+10
|
* release 12.8.0 changelogmw/version-bumpMatt Wrock2016-03-021-0/+9
|
* autofixing whitespace copsLamont Granquist2016-02-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-2/+2
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Add CBGB to the repositoryNathen Harvey2016-01-211-0/+1
| | | | Includes rake task to generate markdown from toml