method

pin_gem_source

pin_gem_source(name, type = :default, source = nil)
private

Pins the gem name to the given source. Adding a gem with the same name from a different source will raise an exception.