Class: ArtifactoryApi

Inherits:
Object
  • Object
show all
Includes:
Artifactory::Resource
Defined in:
lib/artifactory_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeArtifactoryApi

Returns a new instance of ArtifactoryApi.



5
6
7
8
9
10
11
# File 'lib/artifactory_api.rb', line 5

def initialize
  @api = Artifactory::Client.new(
    endpoint: ConfigStore.artifactory.url,
    username: ConfigStore.artifactory.user,
    password: ConfigStore.artifactory.pass
  )
end

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



3
4
5
# File 'lib/artifactory_api.rb', line 3

def api
  @api
end