class Pod::Command::Cache::Proxy::Auth::Remove
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/remove.rb, line 19 def initialize(argv) init @host = argv.shift_argument @silent = argv.flag?('silent', false) super end
Public Instance Methods
run()
click to toggle source
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/remove.rb, line 31 def run raise Pod::Informative.exception "`#{@host}` 不存在" unless CPSH.check_auth_conf_exists(@host) UI.section("remove cache proxy auth `#{@host}`".green) do CPSH.remove_cache_proxy_auth(@host) end end
validate!()
click to toggle source
Calls superclass method
# File lib/cocoapods-cache-proxy/command/cache_proxy/auth/remove.rb, line 26 def validate! super help! 'This command requires both a auth host.' unless @host end