Sha256: ff0d4baef294df0ae04e62d951f6959ef06228b0c55f3ff37aeff98425ab2029
Contents?: true
Size: 1007 Bytes
Versions: 11
Compression:
Stored size: 1007 Bytes
Contents
require 'librarian/source/basic_api' require 'librarian/source/local' module Librarian module Source class Path include BasicApi include Local lock_name 'PATH' spec_options [] attr_accessor :environment, :path private :environment=, :path= def initialize(environment, path, options) self.environment = environment self.path = path end def to_s path.to_s end def ==(other) other && self.class == other.class && self.path == other.path end alias :eql? :== def hash self.to_s.hash end def to_spec_args [path.to_s, {}] end def to_lock_options {:remote => path} end def pinned? false end def unpin! end def cache! end def filesystem_path @filesystem_path ||= Pathname.new(path).expand_path(environment.project_path) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems