summaryrefslogtreecommitdiff
path: root/Rakefile
Commit message (Collapse)AuthorAgeFilesLines
* Integrate ruby 3.1 into buildsJohn McCrae2022-08-231-5/+5
| | | | | | | | | This is a combination of 64 commits, the originals were mostly repeating one-line messages so that history has not been kept here. Signed-off-by: Thomas Powell <thomas.powell@progress.com> Signed-off-by: Marc Paradise <marc@chef.io> Signed-off-by: John McCrae <john.mccrae@progress.com>
* Updated the chef client to retrieve certs from the Windows registry. Tests ↵John McCrae2022-01-311-19/+0
| | | | | | included. This is PR3 since I keep trashing them Signed-off-by: John McCrae <john.mccrae@progress.com>
* Resolve chefstyle warningsTim Smith2021-05-071-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* add local install taskLamont Granquist2021-04-061-0/+11
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use tr instead of gsub where we canTim Smith2020-12-211-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* update pwsh in powershell_exec to 7.1.0 and add comments explaining how to ↵ps71mwrock2020-11-171-0/+19
| | | | | | pull in updates Signed-off-by: mwrock <matt@mattwrock.com>
* Merge pull request #10541 from chef/nuke_yard_taskTim Smith2020-10-201-12/+0
|\ | | | | Remove the yard doc generation task / group
| * Remove the yard doc generation task / groupTim Smith2020-10-201-12/+0
| | | | | | | | | | | | If someone wants the yard docs locally they can just gem install yard and then run yard. This is way overthinking the problem and requires us to exclude the group all over the place. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add missing require in the RakefileTim Smith2020-10-201-0/+1
| | | | | | | | | | | | This was coming in for free with the other rake task. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Remove the announcement rake task + minor task updatesTim Smith2020-10-201-2/+1
|/ | | | | | | | | - The rake task to generate the announcement no longer works because our release notes file contains all the release notes. We're going to need some automation in the future for this, but this isn't it. - Convert the docs task from .to_yml to YAML.dump - Improve the component rake task description - Nuke another copyright data range Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fix for RakefileLance Albertson2020-09-151-1/+1
| | | | Signed-off-by: Lance Albertson <lance@osuosl.org>
* tighten all require statements for dist implementationMarc Chamberland2020-09-151-2/+1
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* move dist implementation into chef-utilsMarc Chamberland2020-09-151-0/+1
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* Add unit and integration testing back to omnibus testersLamont Granquist2020-08-171-1/+1
| | | | | | It is slow but it does catch real bugs Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix quotes for ChefstyleTim Smith2020-07-071-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* expand_path with __dir__ instead of __FILE__Tim Smith2020-07-071-1/+1
| | | | | | It's easier to read this at a glance and understand what path we're trying to get. Signed-off-by: Tim Smith <tsmith@chef.io>
* Refactor spellcheck task and stick it in its own taskTim Smith2020-06-231-16/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fixTim Smith2020-06-231-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Setup cspell to pull from our common dictionaryTim Smith2020-06-231-0/+1
| | | | | | This makes it easier for us to use this on other projects. Signed-off-by: Tim Smith <tsmith@chef.io>
* 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>