source(source, cls = self)
public
The plugins should declare that they provide a installation source through this
helper.
@param [String] the source type they provide
@param [Class] (optional) class that handles the
source. If not
provided, the `self` class will be used.
# File lib/bundler/plugin/api.rb, line 43
def self.source(source, cls = self)
cls.send :include, Bundler::Plugin::API::Source
Plugin.add_source source, cls
end