Class: DeployGate::Xcode::MemberCenters::ProvisioningProfile
- Inherits:
-
Object
- Object
- DeployGate::Xcode::MemberCenters::ProvisioningProfile
- Defined in:
- lib/deploygate/xcode/member_centers/provisioning_profile.rb
Defined Under Namespace
Classes: NotExistUUIDProvisioningProfileError, NotInstalledCertificateError
Constant Summary collapse
- OUTPUT_PATH =
'/tmp/dg/provisioning_profile/'
- CERTIFICATE_OUTPUT_PATH =
'/tmp/dg/certificate/'
Instance Attribute Summary collapse
-
#app_identifier ⇒ Object
readonly
Returns the value of attribute app_identifier.
-
#member_center ⇒ Object
readonly
Returns the value of attribute member_center.
Instance Method Summary collapse
- #create!(uuid = nil) ⇒ Array
-
#initialize(app_identifier, member_center) ⇒ ProvisioningProfile
constructor
A new instance of ProvisioningProfile.
Constructor Details
#initialize(app_identifier, member_center) ⇒ ProvisioningProfile
Returns a new instance of ProvisioningProfile.
15 16 17 18 19 20 |
# File 'lib/deploygate/xcode/member_centers/provisioning_profile.rb', line 15 def initialize(app_identifier, member_center) @member_center = member_center @app_identifier = app_identifier FileUtils.mkdir_p(OUTPUT_PATH) end |
Instance Attribute Details
#app_identifier ⇒ Object (readonly)
Returns the value of attribute app_identifier.
5 6 7 |
# File 'lib/deploygate/xcode/member_centers/provisioning_profile.rb', line 5 def app_identifier @app_identifier end |
#member_center ⇒ Object (readonly)
Returns the value of attribute member_center.
5 6 7 |
# File 'lib/deploygate/xcode/member_centers/provisioning_profile.rb', line 5 def member_center @member_center end |
Instance Method Details
#create!(uuid = nil) ⇒ Array
24 25 26 27 28 29 30 31 32 |
# File 'lib/deploygate/xcode/member_centers/provisioning_profile.rb', line 24 def create!(uuid = nil) profiles = if uuid.nil? all_create() else [download(uuid)] end profiles end |