class Librarian::Source::Path
Attributes
environment[RW]
path[R]
Public Class Methods
new(environment, path, options)
click to toggle source
# File lib/librarian/source/path.rb, line 17 def initialize(environment, path, options) self.environment = environment @path = path end
Public Instance Methods
==(other)
click to toggle source
# File lib/librarian/source/path.rb, line 26 def ==(other) other && self.class == other.class && self.path == other.path end
cache!()
click to toggle source
# File lib/librarian/source/path.rb, line 47 def cache! end
filesystem_path()
click to toggle source
# File lib/librarian/source/path.rb, line 50 def filesystem_path @filesystem_path ||= Pathname.new(path).expand_path(environment.project_path) end
pinned?()
click to toggle source
# File lib/librarian/source/path.rb, line 40 def pinned? false end
to_lock_options()
click to toggle source
# File lib/librarian/source/path.rb, line 36 def to_lock_options {:remote => path} end
to_s()
click to toggle source
# File lib/librarian/source/path.rb, line 22 def to_s path.to_s end
to_spec_args()
click to toggle source
# File lib/librarian/source/path.rb, line 32 def to_spec_args [path.to_s, {}] end
unpin!()
click to toggle source
# File lib/librarian/source/path.rb, line 44 def unpin! end