Class: Pod::Downloader::Git

Inherits:
Base
  • Object
show all
Defined in:
lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.check_if_has_auth_clone(url) ⇒ Object



66
67
68
69
70
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 66

def self.check_if_has_auth_clone(url)
  cmd = "git ls-remote #{url} --exit-code"
  stdout, stderr, status = Open3.capture3(cmd)
  status.success?
end

Instance Method Details

#download_deepObject



61
62
63
64
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 61

def download_deep
  clone(false, false)
  checkout_commit if options[:commit]
end