class Pod::Command::Cache::Proxy::Update
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/cocoapods-cache-proxy/command/cache_proxy/update.rb, line 21 def initialize(argv) init @name, @url, @user, @password = argv.shift_argument, argv.shift_argument, argv.shift_argument, 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/update.rb, line 36 def run raise Pod::Informative.exception "`#{@name}` 不存在" unless CPSH.check_source_conf_exists(@name) UI.section("Update cache proxy repo `#{@name}`".green) do CPSH.init_cache_proxy_source(@name, @url, @user, @password) end end
validate!()
click to toggle source
Calls superclass method
# File lib/cocoapods-cache-proxy/command/cache_proxy/update.rb, line 28 def validate! super help! 'This command requires both a repo name.' unless @name help! 'This command requires both a repo url.' unless @url help! 'This command requires both a repo user.' unless @user help! 'This command requires both a repo password.' unless @password end