Class: AppleConfig
- Inherits:
-
Object
- Object
- AppleConfig
- Defined in:
- lib/Models/AppleConfig.rb
Instance Attribute Summary collapse
-
#appID ⇒ Object
Returns the value of attribute appID.
-
#baseExecutePath ⇒ Object
Returns the value of attribute baseExecutePath.
-
#issueID ⇒ Object
Returns the value of attribute issueID.
-
#keyContent ⇒ Object
Returns the value of attribute keyContent.
-
#keyID ⇒ Object
Returns the value of attribute keyID.
Instance Method Summary collapse
-
#initialize(configYMLObj, configFilePath, baseExecutePath) ⇒ AppleConfig
constructor
A new instance of AppleConfig.
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
#appID ⇒ Object
Returns the value of attribute appID.
8 9 10 |
# File 'lib/Models/AppleConfig.rb', line 8 def appID @appID end |
#baseExecutePath ⇒ Object
Returns the value of attribute baseExecutePath.
8 9 10 |
# File 'lib/Models/AppleConfig.rb', line 8 def baseExecutePath @baseExecutePath end |
#issueID ⇒ Object
Returns the value of attribute issueID.
8 9 10 |
# File 'lib/Models/AppleConfig.rb', line 8 def issueID @issueID end |
#keyContent ⇒ Object
Returns the value of attribute keyContent.
8 9 10 |
# File 'lib/Models/AppleConfig.rb', line 8 def keyContent @keyContent end |
#keyID ⇒ Object
Returns the value of attribute keyID.
8 9 10 |
# File 'lib/Models/AppleConfig.rb', line 8 def keyID @keyID end |