class Pod::Command::Cache::Proxy::Auth::List
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/list.rb, line 16 def initialize(argv) init @silent = argv.flag?('silent', false) super end
Public Instance Methods
print_auth(auth)
click to toggle source
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/list.rb, line 31 def print_auth(auth) if auth.is_a?(Pod::CacheProxyAuth) UI.puts "- Host: #{auth.host}" UI.puts "- Token: #{auth.token}" end end
print_auths(auths)
click to toggle source
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/list.rb, line 38 def print_auths(auths) auths.each_with_index do |auth, index| if auth.is_a?(Pod::CacheProxyAuth) UI.title "auth config: #{index + 1}" do UI.puts "- Host: #{auth.host}" UI.puts "- Token: #{auth.token}" end end end UI.puts "\n" end
run()
click to toggle source
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/list.rb, line 26 def run auths = CPSH.get_all_auths print_auths(auths) end
validate!()
click to toggle source
Calls superclass method
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/list.rb, line 22 def validate! super end