Class: ChefSpec::FileCachePathProxy
- Inherits:
-
Object
- Object
- ChefSpec::FileCachePathProxy
- Includes:
- Singleton
- Defined in:
- lib/chefspec/file_cache_path_proxy.rb
Instance Attribute Summary collapse
-
#file_cache_path ⇒ Object
readonly
Returns the value of attribute file_cache_path.
Instance Method Summary collapse
-
#initialize ⇒ FileCachePathProxy
constructor
A new instance of FileCachePathProxy.
Constructor Details
#initialize ⇒ FileCachePathProxy
Returns a new instance of FileCachePathProxy.
10 11 12 13 |
# File 'lib/chefspec/file_cache_path_proxy.rb', line 10 def initialize @file_cache_path = Dir.mktmpdir(%w{chefspec file_cache_path}) at_exit { FileUtils.rm_rf(@file_cache_path) } end |
Instance Attribute Details
#file_cache_path ⇒ Object (readonly)
Returns the value of attribute file_cache_path.
8 9 10 |
# File 'lib/chefspec/file_cache_path_proxy.rb', line 8 def file_cache_path @file_cache_path end |