class Pod::Command::RepoArt::List

Constants

UTIL

Public Class Methods

new(argv) click to toggle source
Calls superclass method
# File lib/pod/command/repo_art/list.rb, line 23
def initialize(argv)
  init
  @count_only = argv.flag?('count-only')
  super
end
options() click to toggle source
Calls superclass method
# File lib/pod/command/repo_art/list.rb, line 17
def self.options
  [
      ['--count-only', 'Show the total number of repos']
  ].concat(super)
end

Public Instance Methods

print_art_repos(repos) click to toggle source
print_art_repos_count(repos) click to toggle source
run() click to toggle source
# File lib/pod/command/repo_art/list.rb, line 29
def run
  repos = UTIL.get_art_repos
  print_art_repos(repos) unless @count_only
  print_art_repos_count(repos)
end