Class: Pod::Command::X::Repos
- Inherits:
-
Pod::Command::X
- Object
- Pod::Command
- Pod::Command::X
- Pod::Command::X::Repos
- Extended by:
- Executable
- Defined in:
- lib/cocoapods-x/command/repos.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Repos
constructor
A new instance of Repos.
- #run ⇒ Object
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
#run ⇒ Object
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 |