class Chef::FileContentManagement::ContentBase
Attributes
Public Class Methods
Source
# File lib/chef/file_content_management/content_base.rb, line 28 def initialize(new_resource, current_resource, run_context, logger = Chef::Log.with_child) @new_resource = new_resource @current_resource = current_resource @run_context = run_context @tempfile_loaded = false @logger = logger end
Public Instance Methods
Source
# File lib/chef/file_content_management/content_base.rb, line 36 def tempfile # tempfile may be nil, so we cannot use ||= here if @tempfile_loaded @tempfile else @tempfile_loaded = true @tempfile = file_for_provider end end