Class: Fastlane::Actions::CleanBuildArtifactsAction

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/actions/clean_build_artifacts.rb

Class Method Summary collapse

Class Method Details

.run(_params) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/fastlane/actions/clean_build_artifacts.rb', line 4

def self.run(_params)
  [
    Actions.lane_context[Actions::SharedValues::IPA_OUTPUT_PATH],
    Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATH],
    Actions.lane_context[Actions::SharedValues::DSYM_OUTPUT_PATH],
  ].reject { |file| file.nil? || !File.exist?(file) }.each { |file| File.delete(file) }

  Helper.log.info 'Cleaned up build artefacts 🐙'.green
end