summaryrefslogtreecommitdiff
path: root/lib/chef/util/powershell
Commit message (Collapse)AuthorAgeFilesLines
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-133-3/+3
| | | | | | | | 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-2/+2
| | | | | | | | | | | | | 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>
* Style/NegatedIfLamont Granquist2019-07-051-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix shellout require idempotency and bump gemsLamont Granquist2019-05-241-1/+1
| | | | | | | | | | something is declaring an empty class somewhere and trolling me hard but ruby makes that near impossible to figure out, so be slightly more specific by looking for a mixlib-shellout constant also bumps the gems 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>
* Change some more require to require_relativeLamont Granquist2019-05-101-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-082-3/+3
| | | | | | | 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>
* Properly capitalize PowerShell in descriptions and errorspowershellTim Smith2018-09-071-1/+1
| | | | | | It's PowerShell not Powershell. Our docs site had already been updated. Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/PreferredHashMethodsLamont Granquist2018-07-021-1/+1
| | | | | | | absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-021-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fixing Style/MultilineTernaryOperator copLamont Granquist2016-08-161-2/+5
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing whitespace copsLamont Granquist2016-02-052-147/+147
| | | | | | | | | | | | | | | | | | | | | | 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-022-2/+2
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Manual fix ups for things that didn't follow the usual pattern.Noah Kantrowitz2016-02-021-1/+1
|
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-022-2/+2
| | | 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-143-13/+13
| | | | | | | 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.
* chefstyle: fix Lint/StringConversionInInterpolationLamont Granquist2016-01-121-3/+3
| | | | useless use of `"#{foo.to_s}"`
* Prevent inspect on PsCredential from printing out plain text passwordjdm/dont-print-pscredJay Mundrawala2015-11-231-3/+2
|
* Add to_s to ps_credentialJay Mundrawala2015-08-251-0/+4
|
* Guard ps_credential importJay Mundrawala2015-03-201-1/+1
|
* Refactor ps_credential for easier mockingJay Mundrawala2015-03-201-2/+8
|
* Display information from DSCJay Mundrawala2015-03-201-0/+4
|
* Add verbose streamJay Mundrawala2015-03-201-3/+6
|
* Reorganize nesting for powershell classesJay Mundrawala2015-03-202-2/+10
|
* Added PSCredential objectJay Mundrawala2015-03-201-0/+32
|
* JSON needs to be kept separate from other outputJay Mundrawala2015-03-202-4/+38
| | | | | Write-Host and friends can utlimately poplute stdout. This renders the json invalid
* Remove unused codeJay Mundrawala2015-03-201-2/+0
|
* Break super long string up onto multiple linesJay Mundrawala2015-03-201-2/+4
|
* Trying to eradicate all traces of the JSON gem from Cheftyler-ball2014-10-071-2/+2
|
* Switch fileformat to unix, clean up whitespace.Bryan McLellan2014-09-192-3/+3
| | | | | Converts a few files from CRLF->LF. Removes some trailing whitespace as well.
* Correctly handle dsc resource import failuresAdam Edwards2014-09-191-4/+0
|
* Expose exit_code for cmdlet_result and use to detect DSC resource ↵Adam Edwards2014-09-191-0/+4
| | | | installation problems
* Deal with LCM failing when a resource does not support WhatIfJay Mundrawala2014-09-191-7/+11
|
* Added unit test for powershell cmdletJay Mundrawala2014-09-191-2/+2
|
* Initial dsc_configuration resource implementationAdam Edwards2014-09-192-0/+178