Method: Bundler::Source::Path#initialize
- Defined in:
- lib/bundler/source/path.rb
#initialize(options) ⇒ Path
Returns a new instance of Path.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/bundler/source/path.rb', line 16 def initialize() @checksum_store = Checksum::Store.new @options = .dup @glob = ["glob"] || DEFAULT_GLOB @root_path = ["root_path"] || root if ["path"] @path = Pathname.new(["path"]) = (@path) @path = if @path.relative? .relative_path_from(File.(root_path)) else end end @name = ["name"] @version = ["version"] # Stores the original path. If at any point we move to the # cached directory, we still have the original path to copy from. @original_path = @path end |