Module: Pod::Podfile::DSL

Defined in:
lib/resolver_universal_dependency.rb

Overview

第一次读取在结尾的位置,因为需要先定义函数才能调用

Instance Method Summary collapse

Instance Method Details

#use_parent_lock_info!(option = true) ⇒ Object

在这里根据用户配置*重新*读取父Podfile里的信息



67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/resolver_universal_dependency.rb', line 67

def use_parent_lock_info!(option = true)
    case option
    when true, false
        if !option
            $parrentPath = ''
            Podfile.cleanParrentLockFile()
        end
    when Hash
        $parrentPath = option.fetch(:path)
        Podfile.readParrentLockFile()
    else
      raise ArgumentError, "Got `#{option.inspect}`, should be a boolean or hash."
    end
end