Sha256: 739bcbc0368b11a04dc406644ffc51c28b1fa206bd1c92d1df22b59a34b0dca1
Contents?: true
Size: 1.6 KB
Versions: 6
Compression:
Stored size: 1.6 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', '强制推送组件二进制到远程,远程有相同的校验和会被本地覆盖'] ] end def initialize(argv) @force_push = argv.flag?('force-push', false) 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 Jxedt::CachePucher.push(output_dir, nil, @force_push) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems