Class: Pod::X::Sandbox::Repos

Inherits:
Sandbox
  • Object
show all
Includes:
Protocol
Defined in:
lib/cocoapods-x/extension/sandbox/repos.rb

Defined Under Namespace

Classes: Repo

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Repos

Returns a new instance of Repos.



12
13
14
# File 'lib/cocoapods-x/extension/sandbox/repos.rb', line 12

def initialize url
    super File.join(url, 'repos')
end

Class Method Details

.Repo(name, pod_argv, source_argv, workspace, project) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/cocoapods-x/extension/sandbox/repos.rb', line 24

def self.Repo name, pod_argv, source_argv, workspace, project
    return nil if pod_argv.nil?

    location_url = pod_argv[:path]
    return Repo::new(name, nil, location_url) unless location_url.nil?

    repo_url = pod_argv[:source]
    return Repo::new(name, repo_url, LocationUrl(name, repo_url, pod_argv, workspace, project)) unless repo_url.nil?

    return Repo::new(name, nil, nil) if source_argv.nil?                    

    git_name = source_argv[:git]
    return Repo::new(name, nil, nil) if git_name.nil?

    group_name = source_argv[:group]
    return Repo::new(name, nil, nil) if group_name.nil?

    domain_name = source_argv[:domain]
    return Repo::new(name, nil, nil) if domain_name.nil?
    
    if domain_name.start_with? "git@"
        repo_url = RepoGitUrl(domain_name, group_name, git_name)
    else
        repo_url = RepoHttpUrl(domain_name, group_name, git_name)
    end

    Repo::new(name, repo_url, LocationUrl(name, repo_url, pod_argv, workspace, project))
end

Instance Method Details

#install!Object



16
17
18
# File 'lib/cocoapods-x/extension/sandbox/repos.rb', line 16

def install!
    
end

#update!Object



20
21
22
# File 'lib/cocoapods-x/extension/sandbox/repos.rb', line 20

def update!
    
end