Class: XCJobs::Certificate

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/xcjobs/certificate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Certificate

Returns a new instance of Certificate.

Yields:

  • (_self)

Yield Parameters:



9
10
11
12
13
14
# File 'lib/xcjobs/certificate.rb', line 9

def initialize()
  @certificates = {}
  @profiles = []
  yield self if block_given?
  define
end

Instance Attribute Details

#keychain_nameObject

Returns the value of attribute keychain_name.



7
8
9
# File 'lib/xcjobs/certificate.rb', line 7

def keychain_name
  @keychain_name
end

Instance Method Details

#add_certificate(certificate, passphrase = '') ⇒ Object



24
25
26
# File 'lib/xcjobs/certificate.rb', line 24

def add_certificate(certificate, passphrase='')
  @certificates[certificate] = passphrase
end

#add_profile(profile) ⇒ Object



28
29
30
# File 'lib/xcjobs/certificate.rb', line 28

def add_profile(profile)
  @profiles << profile
end

#profile_dirObject



20
21
22
# File 'lib/xcjobs/certificate.rb', line 20

def profile_dir
  @profile_dir || '$HOME/Library/MobileDevice/Provisioning Profiles'
end