lib/berkshelf/locations/path_location.rb in berkshelf-3.0.0.beta3 vs lib/berkshelf/locations/path_location.rb in berkshelf-3.0.0.beta4

- old
+ new

@@ -1,25 +1,6 @@ module Berkshelf class PathLocation < Location::Base - class << self - # Expand and return a string representation of the given path if it is - # absolute or a path in the users home directory. - # - # Returns the given relative path otherwise. - # - # @param [#to_s] path - # - # @return [String] - def normalize_path(path) - path = path.to_s - if (path[0] == '~') || Pathname.new(path).absolute? - File.expand_path(path) - else - path - end - end - end - set_location_key :path set_valid_options :path, :metadata attr_accessor :path