Class: Pod::Command::X::Repos

Inherits:
Pod::Command::X show all
Extended by:
Executable
Defined in:
lib/cocoapods-x/command/repos.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Repos

Returns a new instance of Repos.



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

def initialize(argv)
    @name = argv.shift_argument
    super
end

Instance Method Details

#runObject



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/cocoapods-x/command/repos.rb', line 24

def run
    begin
        if @name.nil? || @name.size <= 0
            open_project_repos!
            open_workspace_repos!
        else
            open_repo! @name
        end
    rescue => exception
        puts "[!] Pod::X #{exception}".red
    end
end