class Pod::Extension::Sandbox::Repos
Public Class Methods
new(url)
click to toggle source
Calls superclass method
# File lib/cocoapods-extension/sandbox/repos.rb, line 11 def initialize url super File.join(url, 'repos') end
Public Instance Methods
install!()
click to toggle source
# File lib/cocoapods-extension/sandbox/repos.rb, line 15 def install! end
pod!(name, repo_url, share)
click to toggle source
# File lib/cocoapods-extension/sandbox/repos.rb, line 23 def pod! name, repo_url, share md5 = Digest::MD5::new md5.update repo_url to = root + "#{Pathname(repo_url).basename}@#{md5.hexdigest}".gsub('.git', '') if to.empty? rm ['-rf', to] end unless to.exist? clone_template! name, repo_url, to end to end
update!()
click to toggle source
# File lib/cocoapods-extension/sandbox/repos.rb, line 19 def update! end
Private Instance Methods
clone_template!(name, repo_url, to)
click to toggle source
# File lib/cocoapods-extension/sandbox/repos.rb, line 38 def clone_template! name, repo_url, to UI.section("Cocoapods-Extension Cloning `#{name}`.".green) do git! ['clone', repo_url, to] end unless (to + '.git').exist? raise Informative, "Clone failed." end end