summaryrefslogtreecommitdiff
path: root/spec/unit/platform
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Deprecate Chef::Platform.supports_msi?remove_msi_checksTim Smith2020-02-281-73/+1
| | | | | | This was put in place for Windows Server Nano which didn't support MSIs. That's not a platform anymore so it can go. Here's the original PR: https://github.com/chef/chef/pull/3939 Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove all the code that checks for Windows Nanonano_supportTim Smith2020-02-281-71/+0
| | | | | | Windows Nano isn't a thing anymore so we shouldn't spending compute time checking to see if we're on Windows Nano Signed-off-by: Tim Smith <tsmith@chef.io>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-9/+9
| | | | | | | | | | | | | 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>
* Properly capitalize PowerShell in descriptions and errorspowershellTim Smith2018-09-071-4/+4
| | | | | | It's PowerShell not Powershell. Our docs site had already been updated. Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Layout/DotPositionLamont Granquist2018-07-021-26/+26
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove support for Windows 20032k3Tim Smith2018-03-021-13/+0
| | | | | | Windows 2003 is fully end of life at this point and hasn't been supported by Chef for quite a while. EXTENDED support for Windows 2003 ended July 14, 2015. We avoid a good number of WMI queries by removing this support entirely. Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-3/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* autofixing whitespace copsLamont Granquist2016-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* 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-21/+21
| | | | | | | 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.
* Lazy load MSI provider, add check for MSI supportsalam/lazy-msiSalim Alam2015-09-221-0/+49
|
* Remove pesky whitespacemcquin/remove-constClaire McQuin2015-09-211-1/+0
|
* Safely clean up Win32 namespace after specsClaire McQuin2015-09-211-13/+2
|
* Remove Win32 after testsClaire McQuin2015-09-181-4/+25
|
* Don't add win_evt logger when on nano.Claire McQuin2015-09-181-7/+68
|
* Rename refresh_mode_disabled? to dsc_refresh_mode_disabled?mcquin/dsc_resource_specClaire McQuin2015-09-081-3/+3
|
* Skip tests unless RefreshMode is DisabledClaire McQuin2015-09-081-0/+24
|
* Stub `windows?` on ChefConfig so it applies to configdanielsdeleo2015-05-201-1/+1
|
* Added spec for supports_dsc_invoke_resource?Jay Mundrawala2015-03-201-0/+22
|
* Update to RSpec 3.Claire McQuin2014-10-291-5/+5
|
* DscScript resource will raise an error if dsc is not availableJay Mundrawala2014-09-191-0/+23
|
* CHEF-4888: Call WIN32OLE.ole_initialize in sub-threadsBryan McLellan2014-03-241-0/+32
An exception is raised when loading WIN32OLE (including via ruby-wmi) in one thread and used in a sub-thread without calling ole_initialize in that thread. This is common in irb/chef-shell's sub-shells that are created in recipe_mode and attribute_mode. Since it will be a while before this is fixed in Ruby and ruby-wmi/rdp-ruby-wmi are stale, we workaround the bug here. Ruby issue: https://bugs.ruby-lang.org/issues/2618