summaryrefslogtreecommitdiff
path: root/spec/unit/mixin/path_sanity_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Convert to default_paths APIlcg/default-pathsLamont Granquist2020-07-221-92/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-3/+3
| | | | | | | | | | | | | 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>
* Chef-13: shell_out PATH fixes and path_sanity changesLamont Granquist2017-04-061-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out polluting PATH with a global path_sanity actually tends to cause problems via picking up stuff from e.g. embedded/bin when users don't want it. This change unsets the default setting to add path sanity. We already have the difference between internal and external uses of shell_out, so what this does is take the internal use of shell_out and always apply the PATH -- so anything calling shell_out gets path_sanity. It also modifies path_sanity to prepend the ruby bin and the embedded bin into the PATH. When we need those for internal use we really want those first. Users who don't want path sanity at all can do: shell_out_with_systems_locale(*whatever) or: shell_out(*whatever, env: { "PATH" => ENV['PATH'] }) Next PR I want to add: shell_out(*whatever, internal: false) Default will still be true though. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* supresses parser gem errorsLamont Granquist2016-03-251-1/+1
| | | | | | see https://github.com/whitequark/parser/issues/283 if rubocop works around this bug then we can revert this patch.
* ensure paths maintain utf-8ness in non ascii encodingsumlautMatt Wrock2016-02-241-0/+6
|
* autofixing whitespace copsLamont Granquist2016-02-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | 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"
* Use double quotes by defaultThom May2016-01-141-8/+8
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Stub `windows?` on ChefConfig so it applies to configdanielsdeleo2015-05-201-2/+2
|
* Update to RSpec 3.Claire McQuin2014-10-291-14/+14
|
* s/stub!/stub/gLamont Granquist2014-01-291-8/+8
| | | | fix deprecation warnings
* allow chef to be invoked with empty environment (env -i)Ranjib Dey2013-12-201-0/+6
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+80
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!