Sha256: ebcf2f07d6526512e3ab6defc5104ffe5b52dc72650a86d4ad67e170936d4330

Contents?: true

Size: 1.17 KB

Versions: 35

Compression:

Stored size: 1.17 KB

Contents

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

        cmd = ['pod cache clean']

        cmd << params[:name].to_s 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|
                                         UI.user_error!("You must specify pod name which should be removed from cache") 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

35 entries across 35 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.103.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.102.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.101.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.100.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.99.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.98.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.97.2 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.97.1 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.97.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.96.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.95.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.94.1 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.94.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.93.1 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.93.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.92.0 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-1.91.0 lib/fastlane/actions/clean_cocoapods_cache.rb