Class: XCJobs::Certificate
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- XCJobs::Certificate
- Includes:
- Rake::DSL
- Defined in:
- lib/xcjobs/certificate.rb
Instance Attribute Summary collapse
-
#keychain_name ⇒ Object
Returns the value of attribute keychain_name.
Instance Method Summary collapse
- #add_certificate(certificate, passphrase = '') ⇒ Object
- #add_profile(profile) ⇒ Object
-
#initialize {|_self| ... } ⇒ Certificate
constructor
A new instance of Certificate.
- #profile_dir ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ Certificate
Returns a new instance of Certificate.
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_name ⇒ Object
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_dir ⇒ Object
20 21 22 |
# File 'lib/xcjobs/certificate.rb', line 20 def profile_dir @profile_dir || '$HOME/Library/MobileDevice/Provisioning Profiles' end |