class Chef::Provider::UlimitRule < Chef::Provider
  def load_current_resource
    new_resource.domain new_resource.domain.domain_name if new_resource.domain.is_a?(Chef::Resource)
    node.run_state[:ulimit] ||= Mash.new
    node.run_state[:ulimit][new_resource.domain] ||= Mash.new
  end

  action :create do # ~FC017
    node.run_state[:ulimit][new_resource.domain][new_resource.item] ||= Mash.new
    node.run_state[:ulimit][new_resource.domain][new_resource.item][new_resource.type] = new_resource.value
  end

  action :delete do
    # NOOP
  end
end

class Chef::Provider::UlimitRule < Chef::Provider
  def load_current_resource
    new_resource.domain new_resource.domain.domain_name if new_resource.domain.is_a?(Chef::Resource)
    node.run_state[:ulimit] ||= Mash.new
    node.run_state[:ulimit][new_resource.domain] ||= Mash.new
  end

  use_inline_resources

  action :create do # ~FC017
    node.run_state[:ulimit][new_resource.domain][new_resource.item] ||= Mash.new
    node.run_state[:ulimit][new_resource.domain][new_resource.item][new_resource.type] = new_resource.value
  end

  action :delete do
    # NOOP
  end
end

Fix undefined method action for Chef::Provider::UlimitRule:Class
Fix undefined method action for Chef::Provider::UlimitRule:Class
