# File lib/homesick/cli.rb, line 136 def link(name = DEFAULT_CASTLE_NAME) check_castle_existance(name, 'symlink') inside castle_dir(name) do subdirs = subdirs(name) # link files symlink_each(name, castle_dir(name), subdirs) # link files in subdirs subdirs.each do |subdir| symlink_each(name, subdir, subdirs) end end end