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.



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

def initialize(stable_source = nil)
    if stable_source.nil?
        stable_source = "https://git.babybus.co/babybus/ios/Specs/stable-specs.git"
    end
    @stable_source = stable_source
end

Instance Method Details

#cachePathObject



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

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