Class: Pod::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-hbh/command/native/native_install.rb

Instance Method Summary collapse

Instance Method Details

#old_prepareObject



5
# File 'lib/cocoapods-hbh/command/native/native_install.rb', line 5

alias old_prepare prepare

#prepareObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/cocoapods-hbh/command/native/native_install.rb', line 6

def prepare
    if podfile.plugins.keys.include?('cocoapods-hbh')
        Pod::UI.puts "使用cocoapods-hbh插件"
        spec_version = HBHConfig.config.cocoapods_version
        cocoapods_version = Pod::VERSION
        if spec_version != cocoapods_version 
            Pod::UI.puts "注意: 你当前的pod版本和指定的版本不一致,当前指定版本为#{spec_version},您的版本为#{cocoapods_version}".red
            exit()
        end
    end
    old_prepare()
end