summaryrefslogtreecommitdiff
path: root/lib/chef/resource/execute.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add misc YARD commentsyard3Tim Smith2019-03-111-0/+3
| | | | | | A pile of misc yard I added as I was reading things. Signed-off-by: Tim Smith <tsmith@chef.io>
* Added back the resource name as per reviewVasu11052019-01-311-0/+1
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Fixed review comments.Vasu11052019-01-301-1/+1
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Fixed typoVasu11052019-01-301-1/+1
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Conver execute_resource to use properties.Vasu11052019-01-301-13/+6
| | | | Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
* Replace several uses of attribute with property in resourcesattribute_is_propertyTim Smith2018-11-151-1/+1
| | | | | | We were still calling things attributes when they're actually properties. This fixes some documentation and error messages. Signed-off-by: Tim Smith <tsmith@chef.io>
* Updates from the review of #7929Tim Smith2018-11-151-1/+1
| | | | | | Thanks @tyler-ball Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve resource descriptions for documentationTim Smith2018-11-141-1/+1
| | | | | | Mostly cleaning up how we describe name properties, but also copying over some edits that happened on the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Skip more resources and set others to desired state falseresource_descriptionsTim Smith2018-10-301-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update descriptions and add default_description fieldsTim Smith2018-10-301-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add additional resource descriptionsTim Smith2018-09-061-1/+4
| | | | | | Filling in more of the missing resource descriptions using the descriptions straight from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
* 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