Class: PuppetLibrary::Util::TempDir::Remover

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_library/util/temp_dir.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Remover



46
47
48
# File 'lib/puppet_library/util/temp_dir.rb', line 46

def initialize(path)
    @path = path
end

Instance Method Details

#call(*args) ⇒ Object



50
51
52
53
54
# File 'lib/puppet_library/util/temp_dir.rb', line 50

def call(*args)
    if File.directory? @path
        FileUtils.rm_rf @path
    end
end