summaryrefslogtreecommitdiff
path: root/lib/chef/util/dsc
Commit message (Collapse)AuthorAgeFilesLines
* Convert require to require_relativeLamont Granquist2019-05-084-9/+9
| | | | | | | 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 Layout/IndentHeredocLamont Granquist2018-07-021-10/+10
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-022-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* mechanical conversion of most debug log statements to traceThom May2018-03-263-6/+6
| | | | Signed-off-by: Thom May <thom@chef.io>
* MSYS-684: Added parser for DSC configurationpiyushawasthi2017-10-052-18/+73
| | | | Signed-off-by: piyushawasthi <piyush.awasthi@msystechnologies.com>
* Code refactor and add spec for powershell version 5piyushawasthi2017-09-121-1/+0
| | | | Signed-off-by: piyushawasthi <piyush.awasthi@msystechnologies.com>
* Refactor all command line options into lcm_command()Bryan McLellan2017-09-121-12/+13
| | | | Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* MSYS-656 - fixed dsc_script for WMF5piyushawasthi2017-09-121-5/+15
| | | | Signed-off-by: piyushawasthi <piyush.awasthi@msystechnologies.com>
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-131-1/+1
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/NilComparisonLamont Granquist2016-12-061-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* set erroraction stop instead of continueNimishaS2016-09-301-1/+1
| | | | Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
* autofixing Style/RedundantException copLamont Granquist2016-08-161-1/+1
|
* chefstyle Style/AndOr fixesLamont Granquist2016-03-142-2/+2
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* pull rubocop 0.37.2 into chefstyleLamont Granquist2016-02-121-1/+1
| | | | | this is from the same ruleset that we had, but the new code catches more conditions.
* auto fixing some rubocopsLamont Granquist2016-02-091-5/+5
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-055-94/+93
| | | | | | | | | | | | | | | | | | | | | | 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-023-3/+3
| | | 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-023-3/+3
|
* 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-144-24/+24
| | | | | | | 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-1/+1
| | | | useless use of `"#{foo.to_s}"`
* Useful error message when dsc resource is not foundJay Mundrawala2015-03-201-1/+3
|
* ResourceStore does not deal with exceptionsJay Mundrawala2015-03-201-9/+3
| | | | | Also, added a more specific exception for when we cannot find the resource
* Update dsc_resource provider to work with 3rd party resourcesJay Mundrawala2015-03-201-1/+1
| | | | | | | | | | | | An example resource: ```ruby dsc_resource "xSmbShare" do resource :xSmbShare property :Name, 'SMBShare1' property :Path, 'C:\Users\vagrant' property :Ensure, 'Present' end ```
* Added resource store for dscJay Mundrawala2015-03-201-0/+114
| | | | | | This is a cache that will be used to lookup the module name for resources. If in the future we decide to do any validation, the data for that can is available.
* Added basic skeleton for DscResource providerJay Mundrawala2015-03-201-6/+0
|
* Add method to get LCM meta configurationJay Mundrawala2015-03-201-0/+6
|
* Merge pull request #2779 from chef/jdm/dsc_script_importsJay Mundrawala2015-02-121-6/+30
|\ | | | | Allow dsc_script to import dsc resources
| * Modified dsc_script imports to not use hash rocketJay Mundrawala2015-02-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Syntax: dsc_script 'Foo' do imports "FooModule", "FooResource", "BarResource" ... end or dsc_script 'Foo' do imports "FooModule" ... end
| * Modified dsc_script resource provider to use the imports hashJay Mundrawala2015-01-201-6/+30
| |
* | dsc_script passes timeout to lcm shelloutJay Mundrawala2015-02-101-7/+7
|/
* Rename Chef::Exceptions::LCMParserException to Chef::Exceptions::LCMParserJay Mundrawala2014-12-172-2/+2
|
* Fix bug where error parser what-if output causes resource to be considered ↵Jay Mundrawala2014-12-172-4/+8
| | | | | | | converged. We now fall back to assuming the resource is not converged if we cannot parse information about a dsc resource.
* Refactored local_configuration_manager to use function to test for what-if ↵Jay Mundrawala2014-10-221-8/+12
| | | | support
* Improve detection missing WhatIf supportBob2014-10-221-1/+1
| | | From output of Whatif-run, do not replace line break by space, as this breaks the match if the break was done within a word.
* Renamed output_has_dsc_module_failure to dsc_module_import_failureJay Mundrawala2014-10-221-2/+2
|
* Try to apply dsc configuration even if what-if failsjdmundrawala/issue-2169Jay Mundrawala2014-10-081-3/+3
|
* lcm parser is a lot more forgivingJay Mundrawala2014-09-191-78/+33
|
* Switch fileformat to unix, clean up whitespace.Bryan McLellan2014-09-192-6/+6
| | | | | Converts a few files from CRLF->LF. Removes some trailing whitespace as well.
* Explicitly require erroraction continue for predictability, consistency in ↵Adam Edwards2014-09-191-2/+2
| | | | match conditional
* No erroraction stop since that filters the excepitonAdam Edwards2014-09-191-3/+3
|
* Correctly handle dsc resource import failuresAdam Edwards2014-09-191-32/+20
|
* Expose exit_code for cmdlet_result and use to detect DSC resource ↵Adam Edwards2014-09-191-1/+1
| | | | installation problems
* Fixup use of status.exitcode to status.status.exitstatusAdam Edwards2014-09-191-1/+1
|
* Handle not installed DSC resource errors from LCMAdam Edwards2014-09-191-3/+10
|
* Set exit code from start-dscconfiguraiton to enable identification of DSC errorsAdam Edwards2014-09-191-1/+22
|
* Deal with LCM failing when a resource does not support WhatIfJay Mundrawala2014-09-193-8/+30
|
* Added unit tests for configuration_generatorJay Mundrawala2014-09-191-1/+1
|
* Add configurationdata attribute supportAdam Edwards2014-09-191-1/+1
|
* Parse WhatIf from LCMJay Mundrawala2014-09-193-23/+201
|