Add ENV.append_path

This commit is contained in:
Jack Nagel 2013-08-19 17:21:13 -05:00
parent 5e41d0f51f
commit b672b44cf9

View File

@ -35,9 +35,15 @@ module SharedEnvExtension
end
end
end
def append_path key, path
append key, path, File::PATH_SEPARATOR if File.directory? path
end
def prepend_path key, path
prepend key, path, File::PATH_SEPARATOR if File.directory? path
end
def remove keys, value
Array(keys).each do |key|
next unless self[key]