Sha256: ccc02312c04341fddbe5bf5c7bc597211c7ab64c66bcbc486a270f8eb7e2571c

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 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_relative '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_relative '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

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-util-0.0.14 lib/cocoapods-util/command/cocoapods-extend/repo/push.rb
cocoapods-util-0.0.12 lib/cocoapods-util/command/cocoapods-extend/repo/push.rb