Module: GemEnforcer::Retrieve
- Defined in:
- lib/gem_enforcer/retrieve.rb,
lib/gem_enforcer/retrieve/git_tag.rb,
lib/gem_enforcer/retrieve/gem_server.rb
Defined Under Namespace
Classes: GemServer, GitTag
Class Method Summary
collapse
Class Method Details
.github_retrieval_by_owner(owner:) ⇒ Object
19
20
21
22
23
24
25
26
|
# File 'lib/gem_enforcer/retrieve.rb', line 19
def github_retrieval_by_owner(owner:)
@github_retrieval_by_owner ||= {}
return @github_retrieval_by_owner[owner] if @github_retrieval_by_owner[owner]
@github_retrieval_by_owner[owner] = GitTag.new(owner: owner)
@github_retrieval_by_owner[owner]
end
|
.server_retrieval_by_source(source:) ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/gem_enforcer/retrieve.rb', line 10
def server_retrieval_by_source(source:)
@server_retrieval_by_source ||= {}
return @server_retrieval_by_source[source] if @server_retrieval_by_source[source]
@server_retrieval_by_source[source] = GemServer.new(source: source)
@server_retrieval_by_source[source]
end
|