class Fastlane::Actions::CleanAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/xamarin/actions/clean_action.rb, line 29
def self.authors
  ["Thomas Charriere"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/xamarin/actions/clean_action.rb, line 42
def self.available_options
  [
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/xamarin/actions/clean_action.rb, line 25
def self.description
  "Clean artifacts"
end
details() click to toggle source
# File lib/fastlane/plugin/xamarin/actions/clean_action.rb, line 37
def self.details
  "Clean bin and bin folders - best done before a build"
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/xamarin/actions/clean_action.rb, line 47
def self.is_supported?(platform)
  [:android, :ios, :mac].include?(platform)
end
return_value() click to toggle source
# File lib/fastlane/plugin/xamarin/actions/clean_action.rb, line 33
def self.return_value
  # If your method provides a return value, you can describe here what it does
end
run(params) click to toggle source
# File lib/fastlane/plugin/xamarin/actions/clean_action.rb, line 7
def self.run(params)
  
  Dir.glob('**/bin').each do |f| 
    if File.directory?(f)
      UI.message("Deleting #{f}") if FastlaneCore::Globals.verbose?
      FileUtils.rm_rf(f) 
    end
  end

  Dir.glob('**/obj').each do |f| 
    if File.directory?(f)
      UI.message("Deleting #{f}") if FastlaneCore::Globals.verbose?
      FileUtils.rm_rf(f) 
    end
  end
  
end