Class: Pod::ArtifactoryRepo

Inherits:
Object
  • Object
show all
Defined in:
lib/pod/artifactory_repo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name



16
17
18
# File 'lib/pod/artifactory_repo.rb', line 16

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path



17
18
19
# File 'lib/pod/artifactory_repo.rb', line 17

def path
  @path
end

#urlObject (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_nameObject



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