class Pod::Command::Binary
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/cocoapods-hd/command/binary.rb, line 24 def initialize(argv) @beta = argv.flag?('beta', false) @delete = argv.flag?('delete', false) # @tag_version = argv.shift_argument @targets = argv.shift_argument super end
options()
click to toggle source
# File lib/cocoapods-hd/command/binary.rb, line 16 def self.options [ ['--beta', 'beta tag'], ['--targets', 'specify targets for binary'], ['--delete', 'delete tag and remove pod repo source'], ] end
Public Instance Methods
binary_tag()
click to toggle source
创建 binary tag
# File lib/cocoapods-hd/command/binary.rb, line 33 def binary_tag UI.puts "binary targets: #{@targets}" if @targets.nil? Prebuild::Passer.target_names = [] else Prebuild::Passer.target_names = @targets end Pod.is_ignore_hook_install = false run_pod_install Pod.is_ignore_hook_install = true end
delete_tag()
click to toggle source
移除tag
# File lib/cocoapods-hd/command/binary.rb, line 48 def delete_tag end
get_tag()
click to toggle source
获取tag名称
# File lib/cocoapods-hd/command/binary.rb, line 53 def get_tag # @beta ? "#{@tag_version}-beta" : @tag_version end
run()
click to toggle source
# File lib/cocoapods-hd/command/binary.rb, line 57 def run if @delete delete_tag else binary_tag end end