Class: Pod::Command::Bin::Upload
- Inherits:
 - 
      Pod::Command::Bin
      
        
- Object
 - Pod::Command
 - Pod::Command::Bin
 - Pod::Command::Bin::Upload
 
 
- Includes:
 - Pod
 
- Defined in:
 - lib/cocoapods-mtxx-bin/command/bin/upload.rb
 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(argv)  ⇒ Upload 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Upload.
 - #run ⇒ Object
 
Methods included from Pod
Methods included from CBin::SpecFilesHelper
#binary_spec, #binary_spec_files, #binary_template_spec, #binary_template_spec_file, #binary_template_spec_files, #clear_binary_spec_file_if_needed, #code_spec, #code_spec_files, #create_binary_spec_file, #find_spec_file, #spec_files
Methods included from CBin::SourcesHelper
#binary_source, #code_source_list, #sources_manager, #sources_option, #valid_sources
Constructor Details
#initialize(argv) ⇒ Upload
Returns a new instance of Upload.
      36 37 38 39 40 41 42 43 44  | 
    
      # File 'lib/cocoapods-mtxx-bin/command/bin/upload.rb', line 36 def initialize(argv) @name = argv.shift_argument @version = argv.shift_argument @file = argv.shift_argument @repo = argv.shift_argument @spec = argv.option('spec', nil) @xcode_version = CBin::BuildAll::BinHelper.xcode_version super end  | 
  
Class Method Details
.options ⇒ Object
      30 31 32 33 34  | 
    
      # File 'lib/cocoapods-mtxx-bin/command/bin/upload.rb', line 30 def self. [ %w[--spec=SPEC 指定podspec文件路径,如果不指定,将在当前目录下查找] ].concat(super) end  | 
  
Instance Method Details
#run ⇒ Object
      46 47 48 49 50 51 52 53 54 55 56 57  | 
    
      # File 'lib/cocoapods-mtxx-bin/command/bin/upload.rb', line 46 def run # 参数检查 argvsCheck # 压缩文件 zip_file # 上传文件 upload_zip_file # 修改podspec modify_spec # 上传podspec upload_spec end  |