summaryrefslogtreecommitdiff
path: root/chef-config/spec
Commit message (Collapse)AuthorAgeFilesLines
* Rename conf.d to config.djdm/knife-bootstrap-clientdJay Mundrawala2016-02-251-3/+3
|
* Rename read_config to apply_configJay Mundrawala2016-02-241-4/+4
| | | | | This makes it the same as application/client.rb. This will let the mixin be used the same way in both places.
* Allow the workstation config to load a conf.d directoryJay Mundrawala2016-02-241-2/+79
| | | | | This will behave similarly to the client.d directory. The top-level ruby files will be loaded in sorted order.
* Fix spec for escape_glob_dirJay Mundrawala2016-02-161-4/+4
| | | | | This was testing `escape_glob` behavior. Probably a copy-pasta mistake
* Fix databag globbing issues for chef-solo on windowsyoungjl12016-02-161-0/+17
| | | | | | | | | | | | Backslashes should not be passed to Dir, as it does not work when globbing in many cases. Created new function that can be used with dir on windows. `escape_glob_dir` should be used when the result is going to be passed into Dir. Fixes #4194 Replaces #4195
* autofixing whitespace copsLamont Granquist2016-02-053-6/+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
* 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"
* 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-023-3/+3
| | | 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"
* Derive repo path from cookbook_artifact pathenable-policies-in-local-mode-by-defaultdanielsdeleo2016-01-261-4/+20
| | | | | Allows you to run local mode with autodetected paths using native policyfile objects only.
* Add test coverage for chef_repo_pathdanielsdeleo2016-01-261-0/+45
|
* Add test for repo_mode behaviordanielsdeleo2016-01-261-0/+43
|
* Use double quotes by defaultThom May2016-01-144-53/+53
| | | | | | | 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.
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-4/+4
|
* Fix no_proxy setting in chef-configjdm/fix-no-proxyJay Mundrawala2015-12-111-0/+11
| | | | Setting a value for `no_proxy` caused ruby to crash.
* Moving the proxy export to environment varibles into Chef::Configtyler-ball2015-12-091-0/+108
|
* GH-1909 Add validation for chef_server_urlSarah Michaelson2015-11-251-0/+6
|
* respond to review commentsThom May2015-11-091-2/+2
| | | | | | | | | | 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
* Implement live streaming for execute resourcesAdam Jacob2015-11-091-0/+4
| | | | | | | | | | This brings live streaming of execute resource output to the output formatters. It also adds a mechanism for checking to see if an output formatter is in use through the event dispatch system. It adds a new configuration option, "always_stream_execute", which does what it says on the tin.
* Create empty config context for chefdkdanielsdeleo2015-09-251-0/+8
| | | | | Allows `knife` and such to parse config files with `chefdk.settting` in them without error.
* Derive locations from expanded path to config filelocal-mode-cache-relative-pathdanielsdeleo2015-09-241-3/+25
| | | | | | | | | | This resolves an issue where running `chef-client -c client.rb -z` will attempt to create the local mode cache at the filesystem root with an error like: ``` ERROR: Permission denied @ dir_s_mkdir - /local-mode-cache ```
* Try fix for failing config testjdm/config-workstation-specJay Mundrawala2015-07-081-5/+10
| | | | | | | | | | | | | | | | | | | | We keep seeing this randomly ``` 1) Chef::WorkstationConfigLoader loading the config file when the config file exists and raises a ruby exception during evaluation raises a ConfigurationError Failure/Error: expect { config_loader.load }.to raise_error(Chef::Exceptions::ConfigurationError) expected Chef::Exceptions::ConfigurationError, got #<Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/Chef-WorkstationConfigLoader-rspec-test20150707-35300-f9yfb6> with backtrace: # ./lib/chef/workstation_config_loader.rb:164:in `readlines' # ./lib/chef/workstation_config_loader.rb:164:in `highlight_config_error' # ./lib/chef/workstation_config_loader.rb:156:in `rescue in read_config' # ./lib/chef/workstation_config_loader.rb:137:in `read_config' # ./lib/chef/workstation_config_loader.rb:72:in `load' # ./spec/unit/workstation_config_loader_spec.rb:275:in `block (6 levels) in <top (required)>' # ./spec/unit/workstation_config_loader_spec.rb:275:in `block (5 levels) in <top (required)>' # ./spec/unit/workstation_config_loader_spec.rb:275:in `block (5 levels) in <top (required)>' ``` I think the issue is that the tempfile gets GC'd, and when it gets GC'd, it deletes the file. If it is cleaned up before it is used, then the test fails.
* Move workstation_config_loader into chef-configmcquin/chef-config/workstation-config-loaderClaire McQuin2015-06-291-0/+286
|
* Move Chef::Config into a subprojectdanielsdeleo2015-05-203-0/+947