Method: Bundler::Source::Git#initialize
- Defined in:
- lib/bundler/source/git.rb
#initialize(options) ⇒ Git
Returns a new instance of Git.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/bundler/source/git.rb', line 12 def initialize() @options = @checksum_store = Checksum::Store.new @glob = ["glob"] || DEFAULT_GLOB @allow_cached = false @allow_remote = false # Stringify options that could be set as symbols %w[ref branch tag revision].each {|k| [k] = [k].to_s if [k] } @uri = URINormalizer.normalize_suffix(["uri"] || "", trailing_slash: false) @safe_uri = URICredentialsFilter.credential_filtered_uri(@uri) @branch = ["branch"] @ref = ["ref"] || ["branch"] || ["tag"] @submodules = ["submodules"] @name = ["name"] @version = ["version"].to_s.strip.gsub("-", ".pre.") @copied = false @local = false end |