# File lib/juicer/command/util.rb, line 20 def relative(paths, reference_path = Dir.pwd) paths = [paths].flatten.collect do |path| path = Pathname.new(File.expand_path(path)) reference_path = Pathname.new(File.expand_path(reference_path)) path.relative_path_from(reference_path).to_s end paths.length == 1 ? paths.first : paths end