summaryrefslogtreecommitdiff
path: root/lib/chef/resource/remote_file.rb
Commit message (Collapse)AuthorAgeFilesLines
* Chef-18: Enable unifed_mode by defaultLamont Granquist2022-03-181-1/+0
| | | | | | | | | This is the breaking change for Chef 18, which was announced throughout the Chef-17 cycle. This should never be backported to Chef 17 or before Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Resolve all Performance/RedundantEqualityComparisonBlock warningsPerformance_RedundantEqualityComparisonBlockTim Smith2021-12-261-1/+1
| | | | | | I'm confused how this works with classes, but :shrug: Signed-off-by: Tim Smith <tsmith@chef.io>
* Expand examples and fix cspell warningsTim Smith2021-09-221-10/+42
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add additional documentation to remote_fileTim Smith2021-09-221-5/+35
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* add examples to remote_fileLamont Granquist2021-09-221-0/+30
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add introducedLamont Granquist2021-09-221-0/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add http_options property to remote_filelcg/remote-file-http-optionsLamont Granquist2021-09-221-0/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Improve docs generation + update property / action descriptionsTim Smith2021-08-131-1/+1
| | | | | | | | | | 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>
* Resolve chefstyle warningsTim Smith2021-05-071-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve automatic docs generationdocsTim Smith2021-02-151-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Workaround rubygems slow requires by only running require for chef-utils/distLance Albertson2020-09-151-1/+1
| | | | Signed-off-by: Lance Albertson <lance@osuosl.org>
* fix a few new instances of Chef::DistMarc Chamberland2020-09-151-3/+3
| | | | | Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
* Fix some spelling violations.Pete Higgins2020-06-041-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Update ssl_verify_mode to have a type and an introduced valueTim Smith2020-05-271-1/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update & add resource descriptions for documentation generationTim Smith2020-05-271-11/+23
| | | | | | Improve the docs we auto generate. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add ssl_verify option for remote_filePhil Dibowitz2020-05-181-0/+3
| | | | | | | | | | | | | | | | Different servers have different https requirements and enforcing the API policy on all `remote_file` resources isn't reasonable. The logic around the HTTP clients and policies in Chef is... complex. This approach seemed like the best one, but I'm open to others. By default here if the user specifies nothing, `remote_file`'s http clients will fall back to the API policy, otherwise, it'll use whatever the specify. This fixes #8897 Signed-off-by: Phil Dibowitz <phil@ipom.com>
* Add missing examples and resource formatting for docs siteTim Smith2020-04-301-2/+1
| | | | | | Get us closer to automated documentation. Signed-off-by: Tim Smith <tsmith@chef.io>
* 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>
* Remove the canonical DSLLamont Granquist2020-03-031-1/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Use the chef-utils helpers in our resourcesTim Smith2020-02-251-1/+1
| | | | | | Use the helpers we now ship to simplify platform detection. Signed-off-by: Tim Smith <tsmith@chef.io>
* Turn on unified_mode for 35 core resourcesLamont Granquist2019-10-281-0/+1
| | | | | | | | | These are the ones that off of the top of my head it should be perfectly safe to turn on `unifed_mode` with minimal auditing. Most of these are so old that they do not use any sub-resources at all. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/ClassCheckLamont Granquist2019-07-051-1/+1
| | | | | | convert kind_of? to is_a? Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/EmptyLiteralLamont Granquist2019-07-051-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/SymbolArrayLamont Granquist2019-07-021-1/+1
| | | | | | start enforcing using %i{} instead of arrays of symbols Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+1
| | | | | | | i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/AlignArgumentslcg/new-chefstyleLamont Granquist2019-07-021-4/+4
| | | | | | | | | | | | | | this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-201-1/+1
| | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-4/+4
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add more resource descriptions and convert more resources to use propertiesminor_resource_cleanupTim Smith2018-03-191-47/+6
| | | | | | More minor cleanup Signed-off-by: Tim Smith <tsmith@chef.io>
* Add more resource descriptionsTim Smith2018-03-161-2/+3
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove old way of being and depend on ProviderResolverJason Barnett2018-03-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as Indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
* Fixed/added specs for LogonSession changesnimisha2018-01-241-0/+2
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Add descriptions and @since comments to all resourcesTim Smith2017-12-191-0/+2
| | | | | | From the docs site Signed-off-by: Tim Smith <tsmith@chef.io>
* Using LOGON32_LOGON_NEW_CREDENTIALS instead of LOGON32_LOGON_NETWORKnimisha2017-09-051-8/+0
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Fixing review commentsnimisha2017-09-051-5/+1
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Alternate user local logon authenticationnimisha2017-09-051-22/+62
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Access remote_file resource source files as alternate user on Windowsadamedx2017-09-051-0/+32
| | | | | Conflicts: spec/support/shared/functional/execute_resource.rb
* Merge pull request #4658 from chef/tm/remote_file_download_progress11.9Thom May2016-03-151-0/+9
|\ | | | | Remote file download progress
| * Enable progress output to be configuredtm/remote_file_download_progressThom May2016-03-041-10/+1
| | | | | | | | Add tests around progress output and tidy up
| * Merge branch 'remote-file-download-progress' of ↵Thom May2016-03-031-0/+18
| |\ | | | | | | | | | https://github.com/brandocorp/chef into tm/remote_file_download_progress
| | * new doc formatter event, remove progress barBrandon Raabe2015-03-201-0/+1
| | |
| | * add progress interval, add ProgressBar classBrandon Raabe2015-03-151-0/+9
| | |
| | * add show_progress attributeBrandon Raabe2015-03-151-0/+8
| | |
* | | chefstyle Style/AndOr fixesLamont Granquist2016-03-141-1/+1
|/ / | | | | | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* | flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-5/+5
| | | | | | | | no enforced trailing comma on arguments...
* | deal with 0.37.2 renamed copsLamont Granquist2016-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 252 Style/TrailingCommaInLiteral 84 Style/TrailingCommaInArguments 15 Style/SpaceAroundKeyword -- 351 Total We already dealt with SpaceAroundKeyword under its old name SpaceBeforeModifierKeyword, it looks like it got stricter about spaces after keywords. TrailingComma also got split, and it looks like the TrailingCommaInArguments behavior is new?
* | autofixing whitespace copsLamont Granquist2016-02-051-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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"