lib/berkshelf/locations/path_location.rb in berkshelf-2.0.0.beta vs lib/berkshelf/locations/path_location.rb in berkshelf-2.0.0
- old
+ new
@@ -1,7 +1,6 @@
module Berkshelf
- # @author Jamie Winsor <reset@riotgames.com>
class PathLocation
class << self
# Expand and return a string representation of the given path if it is
# absolute or a path in the users home directory.
#
@@ -10,10 +9,10 @@
# @param [#to_s] path
#
# @return [String]
def normalize_path(path)
path = path.to_s
- if (path[0] == "~") || Pathname.new(path).absolute?
+ if (path[0] == '~') || Pathname.new(path).absolute?
File.expand_path(path)
else
path
end
end