Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
Fix for Chef 12. Thanks @kangguru!
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Jan 14, 2015
1 parent e1ba497 commit 85f92b0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/default.rb
Expand Up @@ -138,11 +138,7 @@ def self.included(klass)

def deploy_provider
@deploy_provider ||= begin
provider = if Chef::Platform.method(:provider_for_resource).arity == 2
Chef::Platform.provider_for_resource(@deploy_resource, :nothing)
else
Chef::Platform.provider_for_resource(@deploy_resource)
end
provider = @deploy_resource.provider_for_action(:nothing)
provider.load_current_resource
provider
end
Expand Down

0 comments on commit 85f92b0

Please sign in to comment.