Class: Pod::Extension::Sandbox::Repos
- Inherits:
-
Sandbox
- Object
- Sandbox
- Pod::Extension::Sandbox::Repos
- Includes:
- Protocol
- Defined in:
- lib/cocoapods-extension/sandbox/repos.rb
Instance Method Summary collapse
-
#initialize(url) ⇒ Repos
constructor
A new instance of Repos.
- #install! ⇒ Object
- #pod!(name, repo_url, share) ⇒ Object
- #update! ⇒ Object
Constructor Details
#initialize(url) ⇒ Repos
Returns a new instance of Repos.
11 12 13 |
# File 'lib/cocoapods-extension/sandbox/repos.rb', line 11 def initialize url super File.join(url, 'repos') end |
Instance Method Details
#install! ⇒ Object
15 16 17 |
# File 'lib/cocoapods-extension/sandbox/repos.rb', line 15 def install! end |
#pod!(name, repo_url, share) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# 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! ⇒ Object
19 20 21 |
# File 'lib/cocoapods-extension/sandbox/repos.rb', line 19 def update! end |