Class: BB::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-bb-PodAssistant/config/cache_path.rb

Instance Method Summary collapse

Constructor Details

#initialize(stable_source = nil) ⇒ Cache

Returns a new instance of Cache.



5
6
7
8
9
10
# File 'lib/cocoapods-bb-PodAssistant/config/cache_path.rb', line 5

def initialize(stable_source = nil)
    if stable_source.nil?
        stable_source = StableSource.stable_default_source
    end
    @stable_source = stable_source
end

Instance Method Details

#cachePathObject



12
13
14
# File 'lib/cocoapods-bb-PodAssistant/config/cache_path.rb', line 12

def cachePath()
    File.join(File.expand_path('~/.cache'), 'cocoapods-bb-PodAssistant','stable',@stable_source.split('/').last.chomp('.git').to_s)
end