Class: ChefSpec::FileCachePathProxy

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/chefspec/file_cache_path_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFileCachePathProxy

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_pathObject (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