def get_abs_and_rel_path(path)
      original_path = Pathname.new(path)
      root_dir_path = Pathname.new(File.expand_path(Dir.pwd))

      if original_path.absolute?
        [path, original_path.relative_path_from(root_dir_path)]
      else
        [root_dir_path + original_path, path]
      end
    end
def get_abs_and_rel_path(path)
      original_path = Pathname.new(path)
      root_dir_path = Pathname.new(File.expand_path(Dir.pwd))

      if original_path.absolute?
        [path, original_path.relative_path_from(root_dir_path)]
      else
        [root_dir_path + original_path, path]
      end
    end
Returns an array of two items, the first being the absolute path, the second
 the relative path.

 The relative path is relative to the current working dir. The path passed can
 be either relative or absolute.

 @param path [String] Path to get absolute and relative path of
 @return [Array<String>] Absolute and relative path