summaryrefslogtreecommitdiff
path: root/spec/unit/provider/script_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix execute resource to use shell_out_with_systems_localeLamont Granquist2017-06-301-1/+1
| | | | | | | | | | | | | | | | | | This may be a breaking change for some users coming from 13.0/13.1 but this was the intended way that this API would function in Chef 13.0. With this change we stop inserting environment variables into execute resources. That means that whatever users type into the execute resource should much more exactly agree with the response on the command line, which will close a shedload of bugs and is how Chef 13.0 was intended to operate. We no longer globally mangle the PATH or the LANG/LC_ locale environment variables. The way that it worked in Chef 13.0/13.1 resulted in the internal chef embedded/bin directory being prepended to the PATH environment variable in the `execute` resource, which was never intended. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Rubocop violations in execute resource alternate user implementationadamedx2017-02-021-15/+15
|
* Windows alternate user support for execute resourcesAdam Edwards2017-02-021-6/+49
|
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing whitespace copsLamont Granquist2016-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Some more author domain stragglers.Noah Kantrowitz2016-02-021-1/+1
|
* 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.
* Implement code review comments and fix failing testsThom May2015-11-091-2/+2
|
* Implement live streaming for execute resourcesAdam Jacob2015-11-091-1/+1
| | | | | | | | | | This brings live streaming of execute resource output to the output formatters. It also adds a mechanism for checking to see if an output formatter is in use through the event dispatch system. It adds a new configuration option, "always_stream_execute", which does what it says on the tin.
* Execute and Script Resource improvementsLamont Granquist2014-12-081-43/+61
| | | | | | | | | | | - Warning on incorrect usage of the command resource in any script resource - Warning on code in script resource being nil - Specs added to force deprecation of incorrect usage in Chef-13 - Specs added around the (supported) incorrect usage in Chef-12 - Cleanup+Modernization of providers and specs - Fixed some global state bugs around the Chef::Log.level in the spec tests
* Update to RSpec 3.Claire McQuin2014-10-291-1/+1
|
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-12/+12
| | | | mechanically generated patch using transpec 2.3.7 gem
* s/stub!/stub/gLamont Granquist2014-01-291-5/+5
| | | | fix deprecation warnings
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+96
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!