class Fastlane::Actions::LockKeychainAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/lock_keychain/actions/lock_keychain_action.rb, line 28 def self.available_options [ FastlaneCore::ConfigItem.new(key: :path, env_name: "FL_LOCK_KEYCHAIN_PATH", description: "Path to the keychain file", optional: false, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/lock_keychain/actions/lock_keychain_action.rb, line 11 def self.description "Plugin for locking unlocked keychain" end
details()
click to toggle source
# File lib/fastlane/plugin/lock_keychain/actions/lock_keychain_action.rb, line 23 def self.details # Optional: "You can use this plugin in pair with unlock_keychain to lock keychain after build process" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/lock_keychain/actions/lock_keychain_action.rb, line 38 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md # # [:ios, :mac, :android].include?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/lock_keychain/actions/lock_keychain_action.rb, line 19 def self.return_value # If your method provides a return value, you can describe here what it does end
run(params)
click to toggle source
# File lib/fastlane/plugin/lock_keychain/actions/lock_keychain_action.rb, line 4 def self.run(params) keychain_path = FastlaneCore::Helper.keychain_path(params[:path]) escaped_path = keychain_path.shellescape commands = [Fastlane::Actions.sh("security lock-keychain #{escaped_path}", log: false)] commands end