module Poise::Helpers::LWRPPolyfill::Provider::LoadCurrentResource

Public Instance Methods

load_current_resource() click to toggle source
# File lib/poise/helpers/lwrp_polyfill.rb, line 133
def load_current_resource
  @current_resource = if new_resource
    new_resource.class.new(new_resource.name, run_context)
  else
    # Better than nothing, subclass can overwrite anyway.
    Chef::Resource.new(nil, run_context)
  end
end