class CookbookOmnifetch::StagingArea
def path
-
(Pathname)
- path to the staging folder
Raises:
-
(StagingAreaNotAvailable)
-
def path raise StagingAreaNotAvailable if unavailable? return @path unless @path.nil? # Dir.mktmpdir returns a directory with restrictive permissions that it # doesn't support modifying, so create a subdirectory under it with # regular permissions for staging. @stage_tmp = Dir.mktmpdir @path = Pathname.new(File.join(@stage_tmp, "staging")) FileUtils.mkdir(@path) @path end