Sha256: 5c5be521786d8542d3ff8458fd2bb2db72cb6c496073aafbbeb9acc2d6c7ff29

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 Bytes

Contents

module Fastlane
  module Actions
    class CleanBuildArtifactsAction < Action
      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

      def self.description
        "Deletes files created as result of running ipa or sigh"
      end

      def self.author
        "lmirosevic"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fastlane-0.10.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.9.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.8.1 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.8.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.7.0 lib/fastlane/actions/clean_build_artifacts.rb