Class: AppleConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/Models/AppleConfig.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configYMLObj, configFilePath, baseExecutePath) ⇒ AppleConfig

Returns a new instance of AppleConfig.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/Models/AppleConfig.rb', line 9

def initialize(configYMLObj, configFilePath, baseExecutePath)
    keyFilePath = Helper.unwrapRequiredParameter(configYMLObj,"appStoreConnectP8PrivateKeyFilePath")

    if Pathname.new(keyFilePath).absolute?
        configDir = File.dirname(configFilePath)
        keyFilePath = "#{configDir}#{keyFilePath}"
    end

    keyFile = File.read(keyFilePath)
    @keyContent = OpenSSL::PKey::EC.new(keyFile)

    @baseExecutePath = baseExecutePath
    @keyID = Helper.unwrapRequiredParameter(configYMLObj,"appStoreConnectP8PrivateKeyID")
    @issueID = Helper.unwrapRequiredParameter(configYMLObj,"appStoreConnectIssueID")
    @appID = Helper.unwrapRequiredParameter(configYMLObj,"appID")
end

Instance Attribute Details

#appIDObject

Returns the value of attribute appID.



8
9
10
# File 'lib/Models/AppleConfig.rb', line 8

def appID
  @appID
end

#baseExecutePathObject

Returns the value of attribute baseExecutePath.



8
9
10
# File 'lib/Models/AppleConfig.rb', line 8

def baseExecutePath
  @baseExecutePath
end

#issueIDObject

Returns the value of attribute issueID.



8
9
10
# File 'lib/Models/AppleConfig.rb', line 8

def issueID
  @issueID
end

#keyContentObject

Returns the value of attribute keyContent.



8
9
10
# File 'lib/Models/AppleConfig.rb', line 8

def keyContent
  @keyContent
end

#keyIDObject

Returns the value of attribute keyID.



8
9
10
# File 'lib/Models/AppleConfig.rb', line 8

def keyID
  @keyID
end