class Librarian::Source::Path
Attributes
environment[RW]
path[RW]
Public Class Methods
new(environment, path, options)
click to toggle source
# File lib/librarian/source/path.rb, line 16 def initialize(environment, path, options) self.environment = environment self.path = path end
Public Instance Methods
==(other)
click to toggle source
# File lib/librarian/source/path.rb, line 25 def ==(other) other && self.class == other.class && self.path == other.path end
Also aliased as: eql?
cache!()
click to toggle source
# File lib/librarian/source/path.rb, line 52 def cache! end
filesystem_path()
click to toggle source
# File lib/librarian/source/path.rb, line 55 def filesystem_path @filesystem_path ||= Pathname.new(path).expand_path(environment.project_path) end
hash()
click to toggle source
# File lib/librarian/source/path.rb, line 33 def hash self.to_s.hash end
pinned?()
click to toggle source
# File lib/librarian/source/path.rb, line 45 def pinned? false end
to_lock_options()
click to toggle source
# File lib/librarian/source/path.rb, line 41 def to_lock_options {:remote => path} end
to_s()
click to toggle source
# File lib/librarian/source/path.rb, line 21 def to_s path.to_s end
to_spec_args()
click to toggle source
# File lib/librarian/source/path.rb, line 37 def to_spec_args [path.to_s, {}] end
unpin!()
click to toggle source
# File lib/librarian/source/path.rb, line 49 def unpin! end