Class: Pod::Command::JxedtCommand::Binary::Push
- Inherits:
-
Pod::Command::JxedtCommand::Binary
- Object
- Pod::Command
- Pod::Command::JxedtCommand
- Pod::Command::JxedtCommand::Binary
- Pod::Command::JxedtCommand::Binary::Push
- Defined in:
- lib/cocoapods-jxedt/command/binary/command/push.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Push
constructor
A new instance of Push.
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Push
Returns a new instance of Push.
18 19 20 21 |
# File 'lib/cocoapods-jxedt/command/binary/command/push.rb', line 18 def initialize(argv) @force_push = argv.flag?('force-push', false) super end |
Class Method Details
.options ⇒ Object
13 14 15 16 17 |
# File 'lib/cocoapods-jxedt/command/binary/command/push.rb', line 13 def self. [ ['--force-push', '强制推送组件二进制到远程,远程有相同的校验和会被本地覆盖'] ] end |
Instance Method Details
#run ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/cocoapods-jxedt/command/binary/command/push.rb', line 27 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 |
#validate! ⇒ Object
23 24 25 |
# File 'lib/cocoapods-jxedt/command/binary/command/push.rb', line 23 def validate! super end |