Class: DeployGate::Xcode::MemberCenters::ProvisioningProfile

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(app_identifier) ⇒ 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 = DeployGate::Xcode::MemberCenter.instance
  @app_identifier = app_identifier

  FileUtils.mkdir_p(OUTPUT_PATH)
end

Instance Attribute Details

#app_identifierObject (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_centerObject (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

Parameters:

  • uuid (String) (defaults to: nil)

Returns:

  • (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