Sha256: 7b13b95aa5ab57764c487348d17a9d9495ad2fac098db353a0755311c4908613

Contents?: true

Size: 1.36 KB

Versions: 591

Compression:

Stored size: 1.36 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

      def self.example_code
        [
          'clean_cocoapods_cache',
          'clean_cocoapods_cache(name: "CACHED_POD")'
        ]
      end

      def self.category
        :building
      end
    end
  end
end

Version data entries

591 entries across 591 versions & 2 rubygems

Version Path
fastlane-2.127.2 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190719200019 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190718200101 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190717200026 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190716200022 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190715200056 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190714200028 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190713200107 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190712200059 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190711200117 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.127.1 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.128.0.beta.20190710200106 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.127.0 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.127.0.beta.20190709200015 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.127.0.beta.20190708200031 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane_iac_publish-0.1.4 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane_iac_publish-0.1.3 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane_iac_publish-0.1.2 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane-2.127.0.beta.20190707200017 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb
fastlane_iac_publish-0.1.1 fastlane/lib/fastlane/actions/clean_cocoapods_cache.rb