Class: MacSetup::SymlinkPathBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/mac_setup/symlink_path_builder.rb

Constant Summary collapse

HOME =
(ENV.fetch("HOME") + "/").freeze

Class Method Summary collapse

Class Method Details

.paths_for(root_dir) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/mac_setup/symlink_path_builder.rb', line 6

def paths_for(root_dir)
  root = Pathname.new(root_dir)

  each_child(root) do |child|
    yield [child.to_s, rewrite_path(child, root)]
  end
end