Sha256: 3fa7c1323ab04e23e733b480b097a0da85935e3ce61285536e947e10844fae70

Contents?: true

Size: 513 Bytes

Versions: 4

Compression:

Stored size: 513 Bytes

Contents

module Fastlane
  module Actions
    class CleanBuildArtifactsAction
      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 artifacts 🐙'.green
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fastlane-0.6.1 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.6.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.5.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.4.2 lib/fastlane/actions/clean_build_artifacts.rb