    # File lib/chef/platform.rb, line 380
          def provider_for_resource(resource, action=:nothing)
            node = resource.run_context && resource.run_context.node
            raise ArgumentError, "Cannot find the provider for a resource with no run context set" unless node
            provider = find_provider_for_node(node, resource).new(resource, resource.run_context)
            provider.action = action
            provider
          end