Method: Puppet::ModuleTool::Applications::Unpacker#move_into
- Defined in:
- lib/puppet/module_tool/applications/unpacker.rb
#move_into(dir) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
83 84 85 86 87 88 89 |
# File 'lib/puppet/module_tool/applications/unpacker.rb', line 83 def move_into(dir) dir = Pathname.new(dir) dir.rmtree if dir.exist? FileUtils.mv(root_dir, dir) ensure FileUtils.rmtree(tmpdir) end |