Class: Pod::Command::Repo::List
- Inherits:
-
Pod::Command::Repo
- Object
- CLAide::Command
- Pod::Command
- Pod::Command::Repo
- Pod::Command::Repo::List
- Defined in:
- lib/cocoapods/command/repo/list.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ List
constructor
A new instance of List.
- #run ⇒ Object
Methods inherited from Pod::Command::Repo
Methods included from Executable
#executable, execute_command, which
Methods inherited from Pod::Command
#ensure_master_spec_repo_exists!, report_error, run
Methods included from Pod::Config::Mixin
Constructor Details
#initialize(argv) ⇒ List
Returns a new instance of List.
15 16 17 18 |
# File 'lib/cocoapods/command/repo/list.rb', line 15 def initialize(argv) @count_only = argv.flag?('count-only') super end |
Class Method Details
.options ⇒ Object
11 12 13 |
# File 'lib/cocoapods/command/repo/list.rb', line 11 def self. [['--count-only', 'Show the total number of repos']].concat(super) end |
Instance Method Details
#run ⇒ Object
32 33 34 35 36 |
# File 'lib/cocoapods/command/repo/list.rb', line 32 def run sources = SourcesManager.all print_sources(sources) unless @count_only print_count_of_sources(sources) end |