Class: CBin::Push::Helper
- Inherits:
 - 
      Object
      
        
- Object
 - CBin::Push::Helper
 
 
- Includes:
 - SourcesHelper
 
- Defined in:
 - lib/cocoapods-bb-bin/helpers/push_spec_helper.rb
 
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Helper 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Helper.
 - 
  
    
      #push_binary_repo(binary_podsepc_json, isGenDylib = false)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
上传二进制 podspec.
 - 
  
    
      #push_source_repo(source_podsepc_json)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
上传源码podspec.
 
Methods included from SourcesHelper
#binary_source, #code_source, #sources_manager, #sources_option, #sources_optionV2, #valid_sources, #valid_sourcesV2
Constructor Details
#initialize ⇒ Helper
Returns a new instance of Helper.
      14 15  | 
    
      # File 'lib/cocoapods-bb-bin/helpers/push_spec_helper.rb', line 14 def initialize() end  | 
  
Instance Method Details
#push_binary_repo(binary_podsepc_json, isGenDylib = false) ⇒ Object
上传二进制 podspec
      18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41  | 
    
      # File 'lib/cocoapods-bb-bin/helpers/push_spec_helper.rb', line 18 def push_binary_repo(binary_podsepc_json,isGenDylib=false) argvs = [ "#{binary_source.name}", # repo "#{binary_podsepc_json}", # spec "--binary", "--sources=#{binary_source},https:\/\/cdn.cocoapods.org", "--skip-import-validation", "--use-libraries", "--allow-warnings", "--verbose", "--code-dependencies", '--no-cocoapods-validator', #不采用cocoapods验证 ] if @verbose argvs += ['--verbose'] end if isGenDylib # 生成动态库 argvs += ['--dylib'] end Pod::UI. "上传二进制 argvs: #{argvs}" push = Pod::Command::Bin::Repo::Push.new(CLAide::ARGV.new(argvs)) push.validate! push.run end  | 
  
#push_source_repo(source_podsepc_json) ⇒ Object
上传源码podspec
      44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63  | 
    
      # File 'lib/cocoapods-bb-bin/helpers/push_spec_helper.rb', line 44 def push_source_repo(source_podsepc_json) argvs = [ "#{code_source.name}", # repo "#{source_podsepc_json}", # spec "--sources=#{code_source},https:\/\/cdn.cocoapods.org", "--skip-import-validation", "--use-libraries", "--allow-warnings", "--verbose", "--code-dependencies", '--no-cocoapods-validator', #不采用cocoapods验证 ] if @verbose argvs += ['--verbose'] end Pod::UI. "上传源码 argvs: #{argvs}" push = Pod::Command::Bin::Repo::Push.new(CLAide::ARGV.new(argvs)) push.validate! push.run end  |