Sha256: f71b039d5a06f714b7950c164e5ac39241dc12a850511c86208289be25e38737

Contents?: true

Size: 1.46 KB

Versions: 578

Compression:

Stored size: 1.46 KB

Contents

module Fastlane
  module Actions
    class ClearDerivedDataAction < Action
      def self.run(options)
        path = File.expand_path(options[:derived_data_path])
        UI.message("Derived Data path located at: #{path}")
        FileUtils.rm_rf(path) if File.directory?(path)
        UI.success("Successfully cleared Derived Data ♻️")
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Deletes the Xcode Derived Data"
      end

      def self.details
        "Deletes the Derived Data from '~/Library/Developer/Xcode/DerivedData' or a supplied path"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :derived_data_path,
                                       env_name: "DERIVED_DATA_PATH",
                                       description: "Custom path for derivedData",
                                       default_value: "~/Library/Developer/Xcode/DerivedData")
        ]
      end

      def self.output
      end

      def self.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?(platform)
      end

      def self.example_code
        [
          'clear_derived_data',
          'clear_derived_data(derived_data_path: "/custom/")'
        ]
      end

      def self.category
        :building
      end
    end
  end
end

Version data entries

578 entries across 578 versions & 1 rubygems

Version Path
fastlane-2.90.0.beta.20180405050125 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.90.0.beta.20180404050031 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.90.0.beta.20180403050108 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.89.0 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.89.0.beta.20180402050042 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.89.0.beta.20180401050120 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.89.0.beta.20180331050023 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.89.0.beta.20180330050046 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.89.0.beta.20180329050050 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.89.0.beta.20180328050040 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.88.0 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.88.0.beta.20180327050037 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.88.0.beta.20180325050025 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.88.0.beta.20180324050059 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.87.0 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.87.0.beta.20180323050014 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.87.0.beta.20180322050115 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.86.2 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.87.0.beta.20180321050017 fastlane/lib/fastlane/actions/clear_derived_data.rb
fastlane-2.86.1 fastlane/lib/fastlane/actions/clear_derived_data.rb