Class: Fastlane::Actions::CiTeardownAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/yalantis_ci/actions/ci_teardown.rb

Class Method Summary collapse

Class Method Details

.authorsObject



13
14
15
# File 'lib/fastlane/plugin/yalantis_ci/actions/ci_teardown.rb', line 13

def self.authors
  ["Dima Vorona", "Yalantis"]
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/fastlane/plugin/yalantis_ci/actions/ci_teardown.rb', line 17

def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/fastlane/plugin/yalantis_ci/actions/ci_teardown.rb', line 4

def self.run(params)
  if !Helper.ci? 
    UI.important("Not executed by Continuous Integration system")
    return
  end

  other_action.delete_keychain if File.exist?(ENV['KEYCHAIN_PATH'])
end