Class: Fastlane::Actions::SqCiToolsPrepareKeychainAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SqCiToolsPrepareKeychainAction
- Defined in:
- lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(_) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
41 42 43 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb', line 41 def self. ['Semen Kologrivov'] end |
.available_options ⇒ Object
33 34 35 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb', line 33 def self. Options::Keychain. end |
.description ⇒ Object
25 26 27 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb', line 25 def self.description 'Create in need and unblock keychain for iOS certificates' end |
.details ⇒ Object
29 30 31 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb', line 29 def self.details '' end |
.is_supported?(_) ⇒ Boolean
45 46 47 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb', line 45 def self.is_supported?(_) true end |
.return_value ⇒ Object
37 38 39 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb', line 37 def self.return_value '' end |
.run(params) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb', line 8 def self.run(params) keychain_path = "~/Library/Keychains/#{params[:keychain_name]}-db" if `find ~/Library/Keychains -type f -print | grep '#{params[:keychain_name]}'`.strip.empty? other_action.create_keychain( lock_when_sleeps: false, name: params[:keychain_name], password: params[:keychain_password] ) end other_action.unlock_keychain( path: keychain_path, password: params[:keychain_password] ) end |