# File lib/homesick/utils.rb, line 115 def subdir_remove(castle, path) subdir_filepath = subdir_file(castle) if subdir_filepath.exist? lines = IO.readlines(subdir_filepath).delete_if do |line| line == "#{path}\n" end File.open(subdir_filepath, 'w') { |manfile| manfile.puts lines } end inside castle_dir(castle) do git_add subdir_filepath end end