Sha256: fc8f0fcd15869edb553c76f2965655390ed00dc0c0f9d8e8f36a0120a2051ae6
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
module Pod class Command class Util < Command class Repo < Util class Push < Repo self.summary = '`pod repo push`扩展功能,解决私有仓库验证不过无法推送的问题' self.description = <<-DESC 和`pod repo push`命令使用步骤完全一致,可以设置参数`--skip-validate`跳过验证直接推送到私有仓库,不设置时调用原`push`的命令,不影响原功能。 DESC self.arguments = Pod::Command::Repo::Push.arguments def self.options require 'cocoapods-util/cocoapods-extend/repo/push_helper' Pod::Command::Repo::Push.options end def initialize(argv) @skip_validate = argv.flag?('skip-validate', false) super @argvs = argv.remainder! @repo = @argvs.first end def validate! help! 'A spec-repo name or url is required.' unless @repo end def run require 'cocoapods-util/cocoapods-extend/repo/push_helper' @target = Pod::Command::Repo::Push.new(CLAide::ARGV.new(@argvs)) @target.validate! @target.skip_validate = @skip_validate @target.run end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-util-0.0.11 | lib/cocoapods-util/cocoapods-extend/repo/push.rb |