Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix in apply nested hash when passing hash in config | Nikita Mathur | 2022-06-02 | 1 | -1/+4 |
| | | | | Signed-off-by: Nikita Mathur <nikita.mathur@chef.io> | ||||
* | Fix another typo | Tim Smith | 2021-10-16 | 1 | -1/+1 |
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | Optimize requires for non-omnibus installsrequires | Tim Smith | 2020-08-12 | 1 | -3/+3 |
| | | | | | | require is quite slow in Ruby and doing requires for things you've already required is also slow. We've used this simple hack in Chef to speed up our requires. In the omnibus installs we patch how rubygems works to make this somewhat pointless, but this will help non-omnibus installs Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | Substitute require for require_relativerelative | Tim Smith | 2019-12-20 | 1 | -5/+5 |
| | | | | | | require_relative is significantly faster and should be used when available. Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | Do not crash when loading undefined context from hash | Marc A. Paradise | 2019-11-14 | 1 | -1/+4 |
| | | | | | | | | | | | | | | When loading `from_hash` and with `strict_mode false`, a config context that is not defined will cause mixlib-config to crash. This is because we used `internal_get` without checking to see if the result was nil. nil occurs when the scenario above is met. Now, we will define the context when this happens, and continue to populate that context from the hash. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com> | ||||
* | Chefstyle fixes | Tim Smith | 2019-08-07 | 1 | -8/+10 |
| | | | | Also add the badge to the readme | ||||
* | Chefstyle fixes for the latest chefstyle | Tim Smith | 2018-12-06 | 1 | -21/+21 |
| | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | test+fix config contexts | Lamont Granquist | 2018-07-11 | 1 | -17/+19 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | Avoid converting to text representation when parsing JSON/TOML/etc | Lamont Granquist | 2018-07-11 | 1 | -16/+21 |
| | | | | | | | Directly apply the config as we descend recursively through the Hash using internal_set/internal_get. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | remove debuggerating | Lamont Granquist | 2018-07-05 | 1 | -2/+0 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | add is_default? inspection method | Lamont Granquist | 2018-07-05 | 1 | -0/+11 |
| | | | | | | plus some code cleanup of the configurable class Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | key? and has_key? should find subcontexts | Lamont Granquist | 2018-07-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | when we have: config[:knife][:whatever] then: config.key?(:knife) should be true, not false. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | add `#key?` alias to `#has_key?` | Lamont Granquist | 2018-07-02 | 1 | -2/+4 |
| | | | | | | e.g. for rubocop Style/PreferredHashMethod Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | Fix config_context_list/hash in strict mode | Eli Young | 2018-06-13 | 1 | -2/+2 |
| | | | | Signed-off-by: Eli Young <elyscape@gmail.com> | ||||
* | Adding support for reading from TOML files | tyler-ball | 2018-02-28 | 1 | -0/+7 |
| | | | | Signed-off-by: Tyler Ball <tball@chef.io> | ||||
* | Add support for reading from JSON files | Tom Duffield | 2018-02-09 | 1 | -0/+11 |
| | | | | Signed-off-by: Tom Duffield <tom@chef.io> | ||||
* | Add support for loading config from YAML files | Tom Duffield | 2018-02-09 | 1 | -1/+55 |
| | | | | Signed-off-by: Tom Duffield <tom@chef.io> | ||||
* | fix chefstyle offenses | Lamont Granquist | 2017-06-20 | 1 | -18/+18 |
| | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | Fix chefstyle bustagetm/re_chefstyle | Thom May | 2016-12-06 | 1 | -8/+8 |
| | | | | Signed-off-by: Thom May <thom@chef.io> | ||||
* | Add support for lists and hashes of context configs | Kierran McPherson | 2016-09-21 | 1 | -1/+162 |
| | |||||
* | Merge pull request #42 from chef/hash | Thom May | 2016-09-02 | 1 | -1/+2 |
|\ | | | | | Allow a config context to be set from another config context | ||||
| * | allow a config context to be set from another config contexthash | Matt Wrock | 2016-08-31 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #35 from KierranM/context-blocks | Thom May | 2016-09-02 | 1 | -2/+12 |
|\ \ | |/ |/| | Allow configuring contexts via block | ||||
| * | Remove extraneous methods | Kierran McPherson | 2016-08-13 | 1 | -10/+2 |
| | | |||||
| * | Also allow yielding the context | Kierran McPherson | 2016-08-13 | 1 | -1/+10 |
| | | |||||
| * | Allow configuring contexts via block | Kierran McPherson | 2016-08-13 | 1 | -2/+11 |
| | | |||||
* | | restore by swapping in saved state instead of 'reset and merge' | Matt Wrock | 2016-08-30 | 1 | -5/+9 |
| | | |||||
* | | Opscode -> Chef | Tim Smith | 2016-08-23 | 1 | -4/+4 |
| | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | | Correct new checkslcg/chefstyle | Thom May | 2016-08-11 | 1 | -2/+2 |
| | | | | | | | | Signed-off-by: Thom May <thom@may.lt> | ||||
* | | chefstyle fixes | Lamont Granquist | 2016-08-11 | 1 | -8/+8 |
|/ | |||||
* | Fix ruby warnings for access of undefined instance variable | danielsdeleo | 2015-05-26 | 1 | -0/+5 |
| | |||||
* | Revert "Rename has_key? -> key? (BC compatible)"jdm/revert | Jay Mundrawala | 2015-05-12 | 1 | -2/+1 |
| | | | | This reverts commit d4548e5c898a032c6751e25734371213a1b165c9. | ||||
* | Fix strict mode errors to actually print symboljk/strict-error | John Keiser | 2014-09-09 | 1 | -4/+4 |
| | |||||
* | Rename has_key? -> key? (BC compatible) | Seth Vargo | 2014-06-03 | 1 | -1/+2 |
| | | | Ruby has moved away from has_key?, so mixlib should as well. | ||||
* | Fix example syntax | John Keiser | 2013-12-03 | 1 | -3/+4 |
| | |||||
* | Add ability to reopen config_context, add setter for config_context | John Keiser | 2013-12-03 | 1 | -11/+40 |
| | |||||
* | Add save/restore for tests/serialization | John Keiser | 2013-12-02 | 1 | -8/+86 |
| | |||||
* | Define explicit getter/setter methods for configurables instead of relying ↵ | John Keiser | 2013-09-17 | 1 | -32/+39 |
| | | | | on missing_method | ||||
* | Fix issue with Config['a'] = b | John Keiser | 2013-09-16 | 1 | -1/+1 |
| | |||||
* | Inherit config_strict_mode in child contexts | John Keiser | 2013-09-13 | 1 | -4/+13 |
| | |||||
* | Change config_strict_mode default back to false | John Keiser | 2013-09-11 | 1 | -2/+2 |
| | |||||
* | Make config_strict_mode on by default | John Keiser | 2013-09-11 | 1 | -2/+3 |
| | |||||
* | Rename StrictModeError -> UnknownConfigOptionError | John Keiser | 2013-09-11 | 1 | -7/+7 |
| | |||||
* | Rename context to config_context | John Keiser | 2013-09-10 | 1 | -6/+6 |
| | |||||
* | Add config_strict_mode to restrict set of options that can be set | John Keiser | 2013-09-10 | 1 | -6/+87 |
| | |||||
* | Add context() DSL for config classes | John Keiser | 2013-09-09 | 1 | -0/+28 |
| | |||||
* | Add configurable() DSL and resettable default values | John Keiser | 2013-08-30 | 1 | -77/+98 |
| | |||||
* | Add ability to handle default values | John Keiser | 2013-08-27 | 1 | -0/+26 |
| | |||||
* | Make "configure" still return underlying hash | John Keiser | 2013-08-27 | 1 | -1/+1 |
| | |||||
* | Update hash reference to avoid private sendsmethods-uber-alles | danielsdeleo | 2013-08-27 | 1 | -4/+9 |
| |