Class: Fastlane::Actions::CleanBuildArtifactsAction
- Inherits:
-
Fastlane::Action
- Object
- Fastlane::Action
- Fastlane::Actions::CleanBuildArtifactsAction
- Defined in:
- lib/fastlane/actions/clean_build_artifacts.rb
Class Method Summary collapse
Methods inherited from Fastlane::Action
action_name, available_options, details, output, sh
Class Method Details
.author ⇒ Object
18 19 20 |
# File 'lib/fastlane/actions/clean_build_artifacts.rb', line 18 def self. "lmirosevic" end |
.description ⇒ Object
14 15 16 |
# File 'lib/fastlane/actions/clean_build_artifacts.rb', line 14 def self.description "Deletes files created as result of running ipa or sigh" end |
.is_supported?(platform) ⇒ Boolean
22 23 24 |
# File 'lib/fastlane/actions/clean_build_artifacts.rb', line 22 def self.is_supported?(platform) platform == :ios end |
.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 artifacts 🐙'.green end |