Class: Pod::ArtifactoryRepo
- Inherits:
-
Object
- Object
- Pod::ArtifactoryRepo
- Defined in:
- lib/pod/artifactory_repo.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #create_name ⇒ Object
-
#initialize(path, url) ⇒ ArtifactoryRepo
constructor
A new instance of ArtifactoryRepo.
Constructor Details
#initialize(path, url) ⇒ ArtifactoryRepo
Returns a new instance of ArtifactoryRepo.
3 4 5 6 7 |
# File 'lib/pod/artifactory_repo.rb', line 3 def initialize(path, url) @path = path @url = url create_name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
16 17 18 |
# File 'lib/pod/artifactory_repo.rb', line 16 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
17 18 19 |
# File 'lib/pod/artifactory_repo.rb', line 17 def path @path end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
18 19 20 |
# File 'lib/pod/artifactory_repo.rb', line 18 def url @url end |
Instance Method Details
#create_name ⇒ Object
9 10 11 12 13 14 |
# File 'lib/pod/artifactory_repo.rb', line 9 def create_name split = @path.split("/") if split.length > 0 @name = split[split.length - 1] end end |