Class: Gemstash::Dependencies
- Inherits:
-
Object
- Object
- Gemstash::Dependencies
- Defined in:
- lib/gemstash/dependencies.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Fetcher
Class Method Summary collapse
Instance Method Summary collapse
- #fetch(gems) ⇒ Object
-
#initialize(scope: nil, http_client: nil, db_model: nil) ⇒ Dependencies
constructor
A new instance of Dependencies.
Constructor Details
#initialize(scope: nil, http_client: nil, db_model: nil) ⇒ Dependencies
Returns a new instance of Dependencies.
17 18 19 20 21 |
# File 'lib/gemstash/dependencies.rb', line 17 def initialize(scope: nil, http_client: nil, db_model: nil) @scope = scope @http_client = http_client @db_model = db_model end |
Class Method Details
.for_private ⇒ Object
9 10 11 |
# File 'lib/gemstash/dependencies.rb', line 9 def self.for_private new(scope: "private", db_model: Gemstash::DB::Dependency) end |
.for_upstream(upstream, http_client) ⇒ Object
13 14 15 |
# File 'lib/gemstash/dependencies.rb', line 13 def self.for_upstream(upstream, http_client) new(scope: "upstream/#{upstream}", http_client: http_client) end |