Class: Fastlane::Actions::DeleteKeychainAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/delete_keychain.rb

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, details, output, sh

Class Method Details

.authorsObject



23
24
25
# File 'lib/fastlane/actions/delete_keychain.rb', line 23

def self.authors
  ["gin0606"]
end

.available_optionsObject



14
15
16
17
18
19
20
21
# File 'lib/fastlane/actions/delete_keychain.rb', line 14

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :name,
                                 env_name: "KEYCHAIN_NAME",
                                 description: "Keychain name",
                                 optional: false),
  ]
end

.descriptionObject



10
11
12
# File 'lib/fastlane/actions/delete_keychain.rb', line 10

def self.description
  "Delete keychains and remove them from the search list"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/fastlane/actions/delete_keychain.rb', line 27

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



6
7
8
# File 'lib/fastlane/actions/delete_keychain.rb', line 6

def self.run(params)
  Fastlane::Actions.sh "security delete-keychain #{params[:name].shellescape}", log:false
end