Sha256: 5774d0fc04a272d12a86b13572e8b1a634e2fc8867a48cc9a5a5f472f6d6f83a

Contents?: true

Size: 513 Bytes

Versions: 6

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 artefacts 🐙'.green
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fastlane-0.4.1 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.4.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.3.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.2.1 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.2.0 lib/fastlane/actions/clean_build_artifacts.rb
fastlane-0.1.19 lib/fastlane/actions/clean_build_artifacts.rb