summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make required name attributes workjk/required_name_attributeJohn Keiser2015-07-022-6/+6
|
* Merge pull request #3626 from chef/revert-3606-jdm/pin-ffiJay Mundrawala2015-07-021-1/+1
|\ | | | | Revert "FFI 1.9.9 is causing segfaults"
| * Revert "FFI 1.9.9 is causing segfaults"revert-3606-jdm/pin-ffiJay Mundrawala2015-06-301-1/+1
| |
* | Merge pull request #3623 from chef/jdm/simplify-lwrp1Jay Mundrawala2015-07-013-184/+153
|\ \ | | | | | | Simplify LWRP Deprecations Proposal 1
| * | Fix up specsjdm/simplify-lwrp1Jay Mundrawala2015-06-301-136/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loading the lwrp multiple times causes problems when comparing classes due to the their dynamic nature. It worked fine when we were overriding the things that checked. I've left the tests mostly as is, other than the fact that the test lwrp is loaded only once. The tests should still hold true, even with the new implementation.
| * | Simplify Chef::Resource::MyLWRP deprecationJay Mundrawala2015-06-301-49/+4
| | | | | | | | | | | | | | | | | | | | | Our logic for creating the deprecation class was too complicated and had a lot of edge cases. Simplifying here to only deprecate when `:treat_deprecation_warnings_as_errors` is set. This means that warnings will no longer be printed, however this is a lot less risky.
| * | Added spec for #3607Jay Mundrawala2015-06-301-0/+10
| | |
| * | Revert "Merge pull request #3603 from chef/jdm/lwrp-base"Jay Mundrawala2015-06-303-59/+61
| | | | | | | | | | | | | | | This reverts commit 27d8675ec1c80f1eb7ec57f7b6c854441bb395ee, reversing changes made to 3501ba4020dc21377bc999e57e25eadb315ec783.
* | | Merge pull request #3629 from chef/jdm/update-certsJay Mundrawala2015-07-011-56/+53
|\ \ \ | | | | | | | | Update certs
| * | | Update certsjdm/update-certsJay Mundrawala2015-07-011-56/+53
|/ / /
* | | Merge pull request #3591 from DeWaRs1206/masterThom May2015-07-012-4/+5
|\ \ \ | |_|/ |/| | Use Mixlib::Shellout instead of Chef::Mixin::Command
| * | fix typoDeWaRs12062015-06-292-2/+0
| | |
| * | Merge branch 'master' of https://github.com/DeWaRs1206/chefDeWaRs12062015-06-290-0/+0
| |\ \
| | * | fix solo_spec according previous changeEmmanuel Iturbide2015-06-262-4/+6
| | | |
| * | | fix solo_spec according previous changeEmmanuel Iturbide2015-06-292-4/+6
| |/ /
| * | Use Mixlib::Shellout instead of Chef::Mixin::CommandDeWaRs12062015-06-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using C:\Users\Administrator>chef-solo -i 30 -s 5 -c C:/monsoon/solo.rb -j http://foo-bar/get-run -r http://foo-bar.com/cookbooks.tar.gz failled with error : [2015-06-25T15:01:52+02:00] DEBUG: ---- End output of tar zxvf C:/chef/recipes.t gz -C C:/chef ---- C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:140:in `block in ou tput_of_command': undefined method `exitstatus' for nil:NilClass (NoMethodError) from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:122:in `chdir' from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:122:in `output_of_command' from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:101:in `run_command_and_return_stdout_stderr' from C:/opscode/chef/embedded/apps/chef/lib/chef/mixin/command.rb:79:in `run_command' from C:/opscode/chef/embedded/apps/chef/lib/chef/application/solo.rb:217 :in `reconfigure' from C:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:58:in `r un' from C:/opscode/chef/embedded/apps/chef/bin/chef-solo:25:in `<top (requi red)>' from C:/opscode/chef/bin/chef-solo:63:in `load' from C:/opscode/chef/bin/chef-solo:63:in `<main>' using Mixlib::ShellOut instead of Chef::Mixin::Command solved the issue
* | | Merge pull request #3608 from chef/adamedx/powershell_script_spec_renameTyler Ball2015-06-303-0/+0
|\ \ \ | | | | | | | | Rename powershell spec files to match Ruby conventions
| * | | Rename powershell spec files to match Ruby conventionsadamedx/powershell_script_spec_renameadamedx2015-06-273-0/+0
| | | |
* | | | Update comment about how action could be a non-array. [ci skip]Noah Kantrowitz2015-06-301-1/+3
| | | |
* | | | Merge pull request #3612 from chef/mcquin/chef-config/workstation-config-loaderClaire McQuin2015-06-306-175/+202
|\ \ \ \ | |_|_|/ |/| | | Move WorkstationConfigLoader into chef-config
| * | | Move workstation_config_loader into chef-configmcquin/chef-config/workstation-config-loaderClaire McQuin2015-06-296-175/+202
| | | |
* | | | Merge branch 'jk/call_provides_when_resolving'John Keiser2015-06-3024-372/+676
|\ \ \ \
| * | | | Make provider resolution tests less invasive (don't actually instantiate the ↵jk/call_provides_when_resolvingJohn Keiser2015-06-304-16/+22
| | | | | | | | | | | | | | | | | | | | provider)
| * | | | Code review commentsJohn Keiser2015-06-303-8/+6
| | | | |
| * | | | Test resources as well as providers for all resolversJohn Keiser2015-06-301-107/+111
| | | | |
| * | | | Make ProviderResolver tests work, fix resources to resolve correctly as well ↵John Keiser2015-06-3010-53/+73
| | | | | | | | | | | | | | | | | | | | as providers
| * | | | Optimize logic on class initialize so it doesn't fall into theJohn Keiser2015-06-305-55/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "look at all classes to see if they provide the DSL" else clause when you're just setting resource_name (which happens on every class). Perf fix for tests.
| * | | | Make specs marked ":provider" run againJohn Keiser2015-06-302-15/+19
| | | | |
| * | | | Fix broken specsJohn Keiser2015-06-302-21/+24
| | | | |
| * | | | Rename NoProviderAvailable to ProviderNotFound, add aliasJohn Keiser2015-06-305-11/+10
| | | | |
| * | | | Call provides? when resolving, reduce number of calls to provides?John Keiser2015-06-306-165/+410
|/ / / / | | | | | | | | | | | | in Provider
* | | | Merge branch '3618-run-list-mutation-issue'danielsdeleo2015-06-302-53/+121
|\ \ \ \
| * | | | Don't mutate recipe name string in versioned_recipe_listdanielsdeleo2015-06-302-7/+6
| | | | | | | | | | | | | | | | | | | | fixes #3618
| * | | | Add test coverage versioned_recipe_list, repro #3618danielsdeleo2015-06-301-0/+66
| | | | |
| * | | | Modernize versioned recipe list specsdanielsdeleo2015-06-301-48/+51
|/ / / /
* | | | Update CHANGELOGKartik Null Cating-Subramanian2015-06-301-0/+1
| | | |
* | | | Use windows paths without case-sensitivity.ksubrama/path_spaceKartik Null Cating-Subramanian2015-06-306-91/+247
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #1684 Add tests for path manipulation in chef-fs. Clean up the handling of paths in chef-fs.
* | | | Merge pull request #3603 from chef/jdm/lwrp-baseJay Mundrawala2015-06-303-61/+59
|\ \ \ \ | | | | | | | | | | Fix ability to monkey match LWRP through Chef::Resource::MyLwrp
| * | | | Use const_set instead of evaljdm/lwrp-baseJay Mundrawala2015-06-301-1/+1
| | | | |
| * | | | Added spec for #3607Jay Mundrawala2015-06-301-0/+10
| | | | |
| * | | | Get tests passingJay Mundrawala2015-06-301-0/+15
| | | | |
| * | | | Fix ability to monkey match LWRP through Chef::Resource::MyLwrpJay Mundrawala2015-06-302-61/+34
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Repro ===== The following cookbook would repro the issue cookbooks/lwrptest/resources/my_lwrp.rb --------------------------------------- ```ruby ``` cookbooks/lwrptest/providers/my_lwrp.rb --------------------------------------- ```ruby ``` cookbooks/lwrptest/recipes/default.rb ------------------------------------- ```ruby module Something def something puts 'something here' end end ::Chef::Resource::LwrptestMyLwrp.send(:include, Something) lwrptest_my_lwrp 'blah' do something end ``` Why it does not work ==================== Running this in 12.4.0 produces the error ``` NoMethodError ------------- undefined method `something' for LWRP resource lwrptest_my_lwrp from cookbook lwrptest ``` The problem is that LWRP usage through `Chef::Resource::MyLwrp` and `Chef::Provider::MyLwrp` is depreacted. In order to participate in the deprecation, `Chef::Resource::MyLwrp` is a subclass of the actual `MyLwrp` class with `initialize` overriden to do a Chef::Log.deprecation. In the example above, the intention is to add a method to the resource so that it can be used from the dsl. The reason this does not work is because including the method on `Chef::Resource::MyLwrp` adds the method to the subclass, and the resource that is looked up when running the recipe is the actual resource.
* | | | Merge pull request #3605 from coderanger/actionThom May2015-06-3026-51/+131
|\ \ \ \ | |/ / / |/| | | Rework Resource#action to match the 12.3 API.
| * | | Test updates for the changes to default actions.Noah Kantrowitz2015-06-2919-24/+24
| | | |
| * | | Make resource-based guard interpreters cope with arrays.Noah Kantrowitz2015-06-291-1/+2
| | | | | | | | | | | | Ping @adamedx for confirmation.
| * | | Add a test for array assignment on action.Noah Kantrowitz2015-06-291-0/+5
| | | |
| * | | Tests for new default_action behaviors.Noah Kantrowitz2015-06-291-0/+39
| | | |
| * | | Be paranoid about potential weird overrides of default_action.Noah Kantrowitz2015-06-291-1/+1
| | | | | | | | | | | | Always compare them as arrays, just in case.
| * | | Handle setting default action with the same coercion logic as action.Noah Kantrowitz2015-06-291-9/+4
| | | | | | | | | | | | | | | | This coerces default_action(:one) so action() == [:one]. Also update doctoring to match behavior.
| * | | Get tests passingJay Mundrawala2015-06-292-2/+2
| | | |