summaryrefslogtreecommitdiff
path: root/lib/chef/resource/execute.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove some default values in descriptionsTim Smith2018-07-251-3/+3
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add descriptions to the execute resourceTim Smith2018-07-251-13/+38
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/HashSyntaxLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* change "internal" to "default_env"Lamont Granquist2018-05-301-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add description + make rubocop less annoyinglcg/shell-out-internal-flagLamont Granquist2018-05-251-1/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add internal flag to shell_out and execute resourceLamont Granquist2018-05-251-1/+3
| | | | | | | | this will wind up replacing shell_out_with_systems_locale. also fixes an issue in the sysctl provider. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove platfom restrictions in provides and don't require providersTim Smith2018-03-071-1/+2
| | | | | | Don't require providers in the resources since we map these automatically. Also remove or simplify the platform restrictions in the provides lines in the resources. We're not really getting anything from these the way we wire up resources. Signed-off-by: Tim Smith <tsmith@chef.io>
* Convert more set_or_returns to proper propertiesmore_propertiesTim Smith2018-03-051-74/+8
| | | | | | Just modernizing our resources so we can start to add descriptions to them for the documentation Signed-off-by: Tim Smith <tsmith@chef.io>
* Add new introduced and description resource properties to many resourceTim Smith2018-02-141-3/+5
| | | | | | Not all of them, but a good chunk. Signed-off-by: Tim Smith <tsmith@chef.io>
* [MSYS-725] [chef#6073] allow forcing senistive to false on execute and batch ↵Vasu11052017-12-261-1/+2
| | | | | | resource Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Add descriptions and @since comments to all resourcesTim Smith2017-12-191-0/+3
| | | | | | From the docs site Signed-off-by: Tim Smith <tsmith@chef.io>
* [MSYS-629] Added username/password validation for elevated option (#6293)Nimisha Sharad2017-07-261-0/+4
| | | | | | * Added username/password validation for elevated option with specs Signed-off-by: nimisha <nimisha.sharad@clogeny.com>
* Added :elevated option for powershell_script resourceNimishaS2017-07-191-2/+8
| | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* Very minor follow up to ↵Noah Kantrowitz2017-04-041-1/+0
| | | | | | https://github.com/chef/chef/commit/81db0e0cfc218169a70a8178f83c567b467d2e6c Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* convert additional resource methods to propertieslcg/chef-resource-propertiesLamont Granquist2017-03-071-7/+1
| | | | | | | converts sensitive, retries, retry_delay and ignore_failure to properties Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef 13: remove unused path property from execute resourceLamont Granquist2017-02-281-11/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fixed specsnimisha2017-02-021-0/+8
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Using node[:platform_family] for checking windows platformnimisha2017-02-021-1/+1
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Fixing review commentsnimisha2017-02-021-29/+61
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Additional rubocop for execute resource default argumentsadamedx2017-02-021-3/+3
|
* Windows alternate user support for execute resourcesAdam Edwards2017-02-021-0/+24
|
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-11/+11
| | | | no enforced trailing comma on arguments...
* autofixing whitespace copsLamont Granquist2016-02-051-12/+12
| | | | | | | | | | | | | | | | | | | | | | 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"
* Use double quotes by defaultThom May2016-01-141-2/+2
| | | | | | | 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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-11/+11
| | | | chefstyle -a fixed 1044 occurrances
* respond to review commentsThom May2015-11-091-0/+8
| | | | | | | | | | the logic is now: if the resource is not sensitive, and if it's explicitly requested to be streamed or if the log level is info or debug, then we'll consider streaming it. If we're configured to send the output to the events stream, we'll do so. Otherwise, if we're not daemonized and have a TTY, we'll go to STDOUT
* Capitalize sentencesTim Smith2015-10-181-1/+1
|
* Overwrite resource_name with providesJohn Keiser2015-06-081-1/+0
|
* Add default_action and allowed_actions to Resource class, remove from LWRPJohn Keiser2015-06-011-2/+2
|
* Add use_automatic_resource_nameJohn Keiser2015-06-011-1/+1
|
* Make resource_name call providesJohn Keiser2015-06-011-1/+1
|
* Move resource_name up to Resource, and figure out its value automaticallyJohn Keiser2015-06-011-1/+0
|
* Add "provides" to all resourcesJohn Keiser2015-05-131-0/+1
|
* Fixing #2694 - resource guards are executed in why_run modetball/guard_interpretertyler-ball2015-01-051-0/+7
|
* 28fd0c9c87c6fceb7068776a04c32cd8381fe8f6 removed the path attribute fromSerdar Sutay2014-12-081-0/+11
| | | | | | | | execute resource. Even tough this attribute is not being honored by any provider, some existing cookbooks are still depending on this attribute. Restore path attribute in execute resource with a deprecation message that it will be removed in Chef 13.
* Execute and Script Resource improvementsLamont Granquist2014-12-081-7/+7
| | | | | | | | | | | - 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
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-0/+1
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Differentiate between the default and the user set guard_attributes in order ↵Serdar Sutay2014-10-161-1/+1
| | | | to be able to warn users correctly when they configure a guard_attribute but use a ruby block in the guard.
* Enable guard_interpreters for the execute resource and set the default ↵Serdar Sutay2014-10-161-0/+25
| | | | | | interpreter for the execute resource to be :execute. This ensures that attributes of the resource like :environment & :cwd can be inherited by the guard when guard is specified as a string.
* Remove the "path" attribute from "execute" resource which has never been ↵Serdar Sutay2014-10-161-9/+0
| | | | backed by any providers.
* Guard resource new specs and spec fixesAdam Edwards2014-03-291-6/+0
|
* Refactor to move inheritance to script and derived resourcesAdam Edwards2014-03-291-9/+4
|
* Enable inheritance in guards for certain attributes of execute resourcesadamedx2014-03-291-0/+9
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+132
| | | | The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!
* big refactor of the repo layout. move to a chef gem and a chef-server gem ↵Ezra Zygmuntowicz2008-10-081-133/+0
| | | | all with proper deps
* A whole bunch of missing changes!Adam Jacob2008-10-071-3/+3
|
* Adding in execute supportAdam Jacob2008-09-011-0/+133