Method: Bundler::Dsl#github

Defined in:
lib/bundler/dsl.rb

#github(repo, options = {}) ⇒ Object

[View source]

169
170
171
172
173
174
175
# File 'lib/bundler/dsl.rb', line 169

def github(repo, options = {})
  raise InvalidArgumentError, "GitHub sources require a block" unless block_given?
  github_uri  = @git_sources["github"].call(repo)
  git_options = normalize_hash(options).merge("uri" => github_uri)
  git_source  = @sources.add_git_source(git_options)
  with_source(git_source) { yield }
end