Class: Pod::Podfile::TargetDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/helper/podfile_options.rb

Instance Method Summary collapse

Instance Method Details

#parse_requirements(name, requirements) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/helper/podfile_options.rb', line 18

def parse_requirements(name, requirements)

  options = requirements.last
  if options.is_a?(Hash)
    if options[:local] == true
      Pod::inject_local_path(name, requirements)
    elsif not ([:branch, :commit, :tag] & options.keys).empty? and options[:git] == nil
      Pod::inject_remote_git(name, requirements)
    end
  end
end