class Berkshelf::PathLocation
def ==(other)
def ==(other) other.is_a?(PathLocation) && other.metadata? == metadata? && other.relative_path == relative_path end
def cached_cookbook
- See: BaseLocation#cached_cookbook -
def cached_cookbook @cached_cookbook ||= CachedCookbook.from_path(expanded_path) end
def expanded_path
-
(Pathname)
-
def expanded_path @expanded_path ||= Pathname.new File.expand_path(options[:path], File.dirname(dependency.berksfile.filepath)) end
def inspect
def inspect "#<Berkshelf::PathLocation metadata: #{metadata?}, path: #{relative_path}>" end
def install
- See: BaseLocation#install -
def install validate_cached!(expanded_path) end
def installed?
- See: BaseLocation#installed? -
def installed? false end
def metadata?
-
(Boolean)
-
def metadata? !!options[:metadata] end
def relative_path
-
(Pathname)
-
def relative_path @relative_path ||= expanded_path.relative_path_from(Pathname.new(File.dirname(dependency.berksfile.filepath))) end
def to_lock
def to_lock out = " path: #{relative_path}\n" out << " metadata: true\n" if metadata? out end
def to_s
def to_s "source at #{relative_path}" end