class Dotfiler::Remover

Public Instance Methods

call(path, only_symlinks: true) click to toggle source
# File lib/dotfiler/remover.rb, line 5
def call(path, only_symlinks: true)
  if only_symlinks && !path.symlink?
    raise(Error, "Cannot remove '#{path}' since it is not a symbolic link")
  end

  fs.remove(path.to_s)

  path
end