summaryrefslogtreecommitdiff
path: root/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Fix reference to chef/chef_dictionary main branchJason Barnett2021-12-071-1/+1
| | | | Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
* missed a variable reference in 'dictionary missing' errorRyan Punt2021-10-271-1/+1
| | | | Signed off by: Ryan Punt <ryan@mirum.org>
* Swap wget for curlRyan Punt2021-10-271-8/+14
| | | | Signed off by: Ryan Punt <ryan@mirum.org>
* spellcheck task requires wget; ensure it's installedRyan Punt2021-10-251-1/+13
| | | | Signed-off-by: Ryan Punt <ryan@mirum.org>
* Use bundle config set pathJason Barnett2021-09-211-1/+2
| | | | Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
* Fix chefspec and berkshelf testsTim Smith2021-08-241-1/+1
| | | | | | These are still on master for now Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve docs generation + update property / action descriptionsTim Smith2021-08-131-5/+2
| | | | | | | | | | Simplify how we remove the sensitive properties so we don't have to do it multiple times. Add missing action descriptions Improve formatting on some property descriptions Signed-off-by: Tim Smith <tsmith@chef.io>
* Handle mash types in docsTim Smith2021-07-131-0/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #11601 from chef/notes_generationTim Smith2021-05-211-2/+2
|\ | | | | Properly generate the docs markdown notes sections
| * Fix warnings tooTim Smith2021-05-201-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Properly generate the docs markdown notes sectionsTim Smith2021-05-201-1/+1
| | | | | | | | | | | | Turns out I had this wrong Signed-off-by: Tim Smith <tsmith@chef.io>
* | Update comments in the docs generatorTim Smith2021-05-211-4/+2
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve rake loggingTim Smith2021-05-031-0/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* remove knife spec exclusionsMarc A. Paradise2021-04-301-9/+2
| | | | | | | knife specs are no longer in this path, so they don't need to be excluded anymore. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* Cache all our gems during spec runsTim Smith2021-04-231-1/+1
| | | | | | This should speed up our unit tests a good amount Signed-off-by: Tim Smith <tsmith@chef.io>
* Move knife to its own gemChef Expeditor2021-03-311-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves knife into /knife, in the same way that chef-utils and chef-config are separated. NOTES: == File History == If you see this message as the first message in the history of an knife file, you can see the complete history by using 'git log --follow', 'git config log.follow true' to make it the default behavior in this repository, or 'git config --globa log.follow true' to make it the global default. == API Changes == At the API level, there is one breaking change: CookbookSiteStreamingUploader has been moved out of chef and into knife/core. There were a combination of reasons we chose this path: - CookbookSiteStreamingUploader (CSSU) is only used within Knife. - CookbookSiteStreamingUploader (CSSU) references the command Chef::Knife::CookbookMetadata in order to generate a metadata file for the cookbook to upload - Chef::Knife::CookbookMetadata is no longer available to Chef:: because Knife has been moved to its own gem. Knife gem depends on the Chef gem, so Chef can't depend on something in Knife. A search for usage in related projects (berks, chef-cli) and the Internet at large shows that there are no known external consumers of CSSU. For now, we'll move this class into Knife::Core, as it's going to be faster than splitting off the metadata generation and time is a concern. If we find that we need the metadata generation in chef/ proper, we should evaluate decoupling that functionality from Knife::CookbookMetadata and exposing it via something like `Chef::Cookbook::Metadata#from_cookbook_files` == spec changes == The specs are kept in their existing locations, though we have separated out a `knife_spec_helper` so that we can ensure knife is not directly accessing chef requires; and chef is relying on knife's at all. We also now clear gem paths with each test, to force gem state to reset. This works around a problem where a combination of tests is corrupting the internal Gem state, causing failures in rubygems_spec. See branch `mp/broken-gems` for many more details around findings so far. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* bump the timeout up for gecode/depselector/berks installsLamont Granquist2021-03-221-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Further improve docs generationTim Smith2021-02-221-2/+2
| | | | | | Fix some markdown generration in the rake task and general cleanup of content in the resources. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fully remove user resource support for macOS < 10.14Tim Smith2021-02-161-1/+1
| | | | | | This builds on the removal of macOS 10.13 from the build matrix in https://github.com/chef/chef/pull/10680. With 10.14+ required for Chef packages we can safely remove the dscl_user resource and just assume 10.14+ when creating users. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix typosTim Smith2021-02-071-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Document default actionsTim Smith2021-02-061-3/+3
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Properly handle notes or warnings in propertiesTim Smith2021-02-061-3/+10
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve auto-generated documentationTim Smith2021-02-041-1/+5
| | | | | | | Skip sensitive properties in the docs pages since there are already in the common docs pages Start using action descriptions Signed-off-by: Tim Smith <tsmith@chef.io>
* Add support for resource action descriptionsMarc A. Paradise2021-02-041-7/+4
| | | | | | | | | | | | | | | | | | | | | This will allow us to generate better documentation by including action descriptions in the resource help, and includes updates to the resource inspector and doc generation task to include action descriptions in resource action data. This change permits actions to be defined with the optional new 'description' parameter as follows: ``` action :my_action, description: "my_action changes the state of this world" ... end Action description can be looked up using the `.action_description(action)` method of the resource class. Action descriptions are inheritable and overridable. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* Update spellcheck task for new version of cspell.Pete Higgins2020-12-281-6/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Improve our automated resource documentation generationTim Smith2020-12-151-1/+1
| | | | | | Add more note values to the descriptions, update a few examples for cookstyle and modern gems, and identify a few more resources as providing package on their platform Signed-off-by: Tim Smith <tsmith@chef.io>
* Update the docs generation for the new formatTim Smith2020-11-191-18/+1
| | | | | | | The format has been simplified so we can remove some of the logic from our generation scripts. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update the yaml we generate for resource documentationTim Smith2020-11-101-4/+1
| | | | | | | | We updated this in https://github.com/chef/chef-web-docs/commit/ec546e806366ca315b91e77eb357f65a14e11418 to simplify the yaml we have to generate. Signed-off-by: Tim Smith <tsmith@chef.io>
* Namespace ResourceInspector to avoid conflicts with Inspec's.Pete Higgins2020-11-021-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Don't add a package warning for solaris_packageTim Smith2020-10-281-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Correctly generate docs yaml files to include package warningsTim Smith2020-10-281-5/+5
| | | | | | This data actually needed to be under resource_description_list and not at the top level. Signed-off-by: Tim Smith <tsmith@chef.io>
* Make sure we set both multipackage configs in the docsdocs_generation_updatesTim Smith2020-10-281-3/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve the package docs generation + resolve rubocop warningsTim Smith2020-10-281-5/+5
| | | | | | Resolve a few valid warnings there and then add a few more resources where we should be showing package warnings. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the announcement rake task + minor task updatesTim Smith2020-10-204-87/+2
| | | | | | | | | - 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>
* Update docs generation task to handle Chef 16 required formatTim Smith2020-10-161-1/+1
| | | | | | | We need a boolean for the docs site here, but we get back an array now. For now let's just treat it like a boolean. Signed-off-by: Tim Smith <tsmith@chef.io>
* Avoid declaring arrays in loopsTim Smith2020-10-161-1/+3
| | | | | | There's still a few of these left over, but these are the easy wins with obvious wins. Signed-off-by: Tim Smith <tsmith@chef.io>
* Stop using the Ohai shortcodeTim Smith2020-09-151-7/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update tasks/rspec.rbTim Smith2020-09-091-2/+0
| | | Co-authored-by: pete higgins <pete@peterhiggins.org>
* Use __dir__ instead of getting the dir of __FILE__Tim Smith2020-09-093-3/+3
| | | | | | This is a bit easier to read Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix spellcheck task on Windows.fix-spellcheck-task-on-windowsPete Higgins2020-08-241-2/+7
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Don't depend on chef-utils when it might not be available.update-spellcheck-setupPete Higgins2020-08-051-2/+2
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Fix chefstyle violations.Pete Higgins2020-08-051-2/+2
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Update spellcheck config with nice stuff from other repos.Pete Higgins2020-08-051-6/+16
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Speed up our bundle installs by always running 3 jobsfaster_bundler_installsTim Smith2020-08-042-2/+2
| | | | | | | multi-job bundle install is the default in the next release, but for now we should make sure we set it everywhere. Signed-off-by: Tim Smith <tsmith@chef.io>
* Minor chefstyle fixes in the spellcheck taskTim Smith2020-07-101-4/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Refer to specific rake file to avoid needing bundler to use rake in CI.Pete Higgins2020-07-101-3/+17
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Refactor spellcheck task and stick it in its own taskTim Smith2020-06-231-0/+34
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix cookstyle violations.Pete Higgins2020-06-221-3/+3
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Make the description parsing in docs rake task handle more stuff.Pete Higgins2020-06-221-20/+33
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Add more resource docs + improve yaml generationresource_docsTim Smith2020-06-051-1/+1
| | | | | | Skip defaults that are empty strings. There's a few of these floating around. Signed-off-by: Tim Smith <tsmith@chef.io>