Sha256: acc930b27d52f5ddf1560cf9ee81ae5ab0c87f09086e0c982880aeee12a8c23f

Contents?: true

Size: 1.16 KB

Versions: 39

Compression:

Stored size: 1.16 KB

Contents

module Fastlane
  module Actions
    class CleanCocoapodsCacheAction < Action
      def self.run(params)
        Actions.verify_gem!('cocoapods')

        cmd = ['pod cache clean']

        cmd << "#{params[:name]}" if params[:name]
        cmd << '--all'

        Actions.sh(cmd.join(' '))
      end

      def self.description
        'Remove the cache for pods'
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :name,
                                       env_name: "FL_CLEAN_COCOAPODS_CACHE_DEVELOPMENT",
                                       description: "Pod name to be removed from cache",
                                       optional: true,
                                       is_string: true,
                                       verify_block: proc do |value|
                                         raise "You must specify pod name which should be removed from cache".red if value.to_s.empty?
                                       end)
        ]
      end

      def self.authors
        ["alexmx"]
      end

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
fastlane-1.66.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.65.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.64.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.63.1 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.63.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.62.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.61.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.60.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.59.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.58.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.57.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.56.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.55.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.54.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.53.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.52.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.51.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.50.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.49.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.48.0 lib/fastlane/actions/clean_cocoapods_cache.rb