Sha256: 22de2a8afb64b9cf13a826912081ffd6b162b532770cfe484cf471b460f5d2d6

Contents?: true

Size: 505 Bytes

Versions: 19

Compression:

Stored size: 505 Bytes

Contents

module PodPrebuild
  class CommandExecutor
    def initialize(options)
      @config = options[:config]
      prepare_cache_dir
    end

    def installer
      @installer ||= begin
        pod_config = Pod::Config.instance
        Pod::Installer.new(pod_config.sandbox, pod_config.podfile, pod_config.lockfile)
      end
    end

    def use_local_cache?
      @config.cache_repo.nil?
    end

    def prepare_cache_dir
      FileUtils.mkdir_p(@config.cache_path) if @config.cache_path
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cocoapods-binary-artifactory-cache-0.0.19 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.18 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.17 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.16 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.15 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.14 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.13 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.12 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.11 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.10 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.9 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.8 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.7 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.6 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.5 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.4 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.3 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.2 lib/command/executor/base.rb
cocoapods-binary-artifactory-cache-0.0.1 lib/command/executor/base.rb