Class: Artifactory::GemImport::Repo
- Inherits:
-
Object
- Object
- Artifactory::GemImport::Repo
- Defined in:
- lib/artifactory/gem_import/repo.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #gems_url ⇒ Object
-
#initialize(url:, headers:) ⇒ Repo
constructor
A new instance of Repo.
- #specs_url ⇒ Object
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
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/artifactory/gem_import/repo.rb', line 4 def headers @headers end |
#url ⇒ Object (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_url ⇒ Object
11 12 13 |
# File 'lib/artifactory/gem_import/repo.rb', line 11 def gems_url File.join url, "gems", "/" end |
#specs_url ⇒ Object
15 16 17 |
# File 'lib/artifactory/gem_import/repo.rb', line 15 def specs_url File.join url, "specs.4.8.gz" end |