Method: Chef::Resource.provider_base

Defined in:
lib/chef/resource.rb

.provider_base(arg = nil) ⇒ Object

Resources that want providers namespaced somewhere other than Chef::Provider can set the namespace with provider_base Ex:

class MyResource < Chef::Resource
  provider_base Chef::Provider::Deploy
  # ...other stuff
end


521
522
523
524
# File 'lib/chef/resource.rb', line 521

def provider_base(arg=nil)
  @provider_base ||= arg
  @provider_base ||= Chef::Provider
end