summaryrefslogtreecommitdiff
path: root/lib/chef/resource
Commit message (Collapse)AuthorAgeFilesLines
* fix supports hash issues in service providersLamont Granquist2015-08-251-1/+1
| | | | | | | - redhat provider now allows the user to override :status - gentoo provider now allows the user to override :status and :restart - service providers now dup the status hash and mutate their private copy instead of mutating the new_resource
* fixes from code reviewLamont Granquist2015-08-201-1/+1
|
* class namespacingLamont Granquist2015-08-201-1/+1
|
* add yum_binaryLamont Granquist2015-08-201-1/+10
| | | | | | set this to 'yum-deprecated' if /usr/bin/yum-deprecated exists so that we pick this up rather than getting /usr/bin/yum on systems that have DNF installed (assuming yum-deprecated is installed).
* remove bad merge conflict resolutionLamont Granquist2015-08-181-1/+0
|
* CHEF-5372: Support specific run_levels for RedHat serviceRobby Dyer2015-08-181-1/+10
|
* Merge pull request #3145 from veetow/patch-1Lamont Granquist2015-08-181-1/+1
|\ | | | | Update registry_key.rb
| * Update registry_key.rbveetow2015-03-251-1/+1
| | | | | | Because syntax?
* | Add support for override depth and adding test in overriding depthGomes da Silva2015-08-121-2/+8
| |
* | Move current_value_does_not_exist! directly on ResourceJohn Keiser2015-07-311-0/+2
| |
* | Add current_value_does_not_exist! API, pretty up the outputJohn Keiser2015-07-311-6/+13
| |
* | Move converge_if_changed to Chef::Provider properJohn Keiser2015-07-311-51/+0
| |
* | Add Resource.action.converged_if_changedJohn Keiser2015-07-311-0/+111
| |
* | Warn about deprecation `%{file}` interpolation in verify commandmarguerite2015-07-221-0/+4
| | | | | | | | See chef/chef#3232
* | Interpolate `%{path}` in verify commandmarguerite2015-07-211-1/+3
| | | | | | | | See chef/chef#3232
* | Revert "Merge pull request #3603 from chef/jdm/lwrp-base"Jay Mundrawala2015-06-301-46/+11
| | | | | | | | | | This reverts commit 27d8675ec1c80f1eb7ec57f7b6c854441bb395ee, reversing changes made to 3501ba4020dc21377bc999e57e25eadb315ec783.
* | Make ProviderResolver tests work, fix resources to resolve correctly as well ↵John Keiser2015-06-305-16/+11
| | | | | | | | as providers
* | Get tests passingJay Mundrawala2015-06-301-0/+15
| |
* | Fix ability to monkey match LWRP through Chef::Resource::MyLwrpJay Mundrawala2015-06-301-11/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Create property on resource, alias attribute to itJohn Keiser2015-06-231-7/+1
| |
* | Sort identical "provides" alphabetically (for backcompat)John Keiser2015-06-182-6/+2
| | | | | | | | - Warn when multiple providers try to provide the same thing
* | Support arrays as input to actions / allowed_actionsjk/3535John Keiser2015-06-161-1/+2
| |
* | Ensure :nothing is in the list of allowed actions for an LWRPJohn Keiser2015-06-161-1/+1
| |
* | Overwrite resource_name with providesJohn Keiser2015-06-0865-115/+0
| |
* | Move deprecated LWRP class override to the deprecation method registrarJohn Keiser2015-06-031-5/+2
| |
* | Fix issue #3463: use real constants instead of const_missingJohn Keiser2015-06-031-3/+6
| |
* | finish wiring up to DSLLamont Granquist2015-06-031-0/+2
| |
* | wire zypper_package up to the DSLLamont Granquist2015-06-031-0/+29
| | | | | | | | | | | | i'm not sure how anybody has been using this resource, but think we may have broken this in 12.0.0 at some point, at any rate this will make it a lot easier for people to actually use.
* | fix package timeout attributeLamont Granquist2015-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | updates all the shell_out calls to respect the timeout which is passed on the new_resource. the old `Chef::Config` yum timeout values are still respected and will override the default. the default of 900 seconds is preserved.
* | Use the central priority map for `provides`John Keiser2015-06-021-0/+5
| |
* | Add default_action and allowed_actions to Resource class, remove from LWRPJohn Keiser2015-06-0136-100/+90
| |
* | Deprecate provider_basejk/resource_nameJohn Keiser2015-06-011-2/+6
| |
* | Add use_automatic_resource_nameJohn Keiser2015-06-0165-66/+66
| |
* | Make resource_name call providesJohn Keiser2015-06-0164-55/+66
| |
* | Move resource_name up to Resource, and figure out its value automaticallyJohn Keiser2015-06-0165-147/+14
| |
* | Allow spaces in files for remote_fileJay Mundrawala2015-05-211-1/+4
| | | | | | | | | | | | | | | | | | The following example now works ```ruby remote_file "c:\\nospaces" do source "file:///c:/foo bar" end ```
* | Merge branch 'master' of https://github.com/Kasen/chef into Kasen-masterThom May2015-05-201-1/+1
|\ \
| * | Behavior of default_action method changed.Pavel Yudin2015-03-271-1/+1
| | |
* | | Fix LWRP instance.to_s to look like normal resources againjk/fix_lwrp_class_nameJohn Keiser2015-05-181-2/+2
| | |
* | | Use canonical_path in windows_package resource for sourcejdm/msi-uri-sourceJay Mundrawala2015-05-151-1/+1
| | |
* | | Surface checksum attributeJay Mundrawala2015-05-151-0/+8
| | |
* | | Allow users to override remote_file attributes in windows_packageJay Mundrawala2015-05-151-0/+8
| | |
* | | Refactor uri detectionJay Mundrawala2015-05-151-13/+3
| | |
* | | Modify windows package provider to allow urlJay Mundrawala2015-05-151-2/+18
| | |
* | | Deprecate Chef::Provider::LwrpClass the same way we did ResourceJohn Keiser2015-05-131-4/+4
| | |
* | | Allow LWRPBase.loaded_lwrps to be called from subclassesJohn Keiser2015-05-131-4/+6
| | |
* | | Deprecate dsl_name (the "DSL name for this class" is no longer meaningful).John Keiser2015-05-131-96/+96
| | |
* | | Make sure LWRPBase requires what it uses (fix travis issue)John Keiser2015-05-131-0/+7
| | |
* | | Move LWRP class deprecation warning to const_missingJohn Keiser2015-05-131-24/+2
| | |
* | | Add "provides" to all resourcesJohn Keiser2015-05-1326-8/+27
| | |