Class: Chef::FileContentManagement::Tempfile
- Inherits:
-
Object
- Object
- Chef::FileContentManagement::Tempfile
- Defined in:
- lib/chef/file_content_management/tempfile.rb
Instance Attribute Summary collapse
-
#new_resource ⇒ Object
readonly
Returns the value of attribute new_resource.
Instance Method Summary collapse
-
#initialize(new_resource) ⇒ Tempfile
constructor
A new instance of Tempfile.
- #tempfile ⇒ Object
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_resource ⇒ Object (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
#tempfile ⇒ Object
31 32 33 |
# File 'lib/chef/file_content_management/tempfile.rb', line 31 def tempfile @tempfile ||= tempfile_open end |