Sha256: 72e50ee75094bb83490cd87ac88bfedcfa377e223a3c1a3dbbc559b54e972de8
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 KB
Contents
module Pod class Command class JxedtCommand < Command class Binary < JxedtCommand class Push < Binary self.summary = '同步组件二进制产物到远程' self.description = <<-DESC 同步组件二进制产物到远程 DESC self.command = 'push' self.arguments = [ ] def self.options [ ['--force-push', '强制推送组件二进制到远程,远程有相同的校验和会被本地覆盖'], ['--name', '需要推送到远程的组件名称,不填则推送全部的二进制组件到远程'] ] end def initialize(argv) @force_push = argv.flag?('force-push', false) @name = argv.option('name') super end def validate! super end def run podfile = Pod::Config.instance.podfile help! '请检查命令执行路径,需要在Podfile文件所在目录执行' if podfile.nil? help! '你需要在cache_repo中配置正确的git仓库地址!' unless Jxedt.config.cache_repo_enabled? require 'cocoapods-jxedt/git_helper/cache_pucher' output_dir = Pod::Config.instance.sandbox.root + Jxedt.config.binary_dir targets = [] targets += @name.split(',') if @name && @name.length > 0 Jxedt::CachePucher.push(output_dir, targets, @force_push) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-jxedt-0.0.21 | lib/cocoapods-jxedt/command/binary/command/push.rb |