# File lib/homesick/actions/file_actions.rb, line 44 def ln_s(source, destination) source = Pathname.new(source).realpath destination = Pathname.new(destination) FileUtils.mkdir_p destination.dirname action = if destination.symlink? && destination.readlink == source :identical elsif destination.symlink? :symlink_conflict elsif destination.exist? :conflict else :success end handle_symlink_action action, source, destination end