Class: Chef::FileContentManagement::Tempfile

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/file_content_management/tempfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(new_resource) ⇒ Tempfile

Returns a new instance of Tempfile.



27
28
29
# File 'lib/chef/file_content_management/tempfile.rb', line 27

def initialize(new_resource)
  @new_resource = new_resource
end

Instance Attribute Details

#new_resourceObject (readonly)

Returns the value of attribute new_resource.



25
26
27
# File 'lib/chef/file_content_management/tempfile.rb', line 25

def new_resource
  @new_resource
end

Instance Method Details

#tempfileObject



31
32
33
# File 'lib/chef/file_content_management/tempfile.rb', line 31

def tempfile
  @tempfile ||= tempfile_open
end