Class: Artifactory::GemImport::Repo

Inherits:
Object
  • Object
show all
Defined in:
lib/artifactory/gem_import/repo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, headers:) ⇒ Repo

Returns a new instance of Repo.



6
7
8
9
# File 'lib/artifactory/gem_import/repo.rb', line 6

def initialize(url:, headers:)
  @url = url
  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'lib/artifactory/gem_import/repo.rb', line 4

def headers
  @headers
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/artifactory/gem_import/repo.rb', line 4

def url
  @url
end

Instance Method Details

#gems_urlObject



11
12
13
# File 'lib/artifactory/gem_import/repo.rb', line 11

def gems_url
  File.join url, "gems", "/"
end

#specs_urlObject



15
16
17
# File 'lib/artifactory/gem_import/repo.rb', line 15

def specs_url
  File.join url, "specs.4.8.gz"
end