Module: Pod::Podfile::DSL
- Defined in:
- lib/pod/pod.rb
Instance Method Summary collapse
Instance Method Details
#pod(name = nil, *requirements, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/pod/pod.rb', line 11 def pod(name = nil, *requirements, &block) # # Logic: # Lookup a link for the given pod name. If a link exists then the pod will be installed # via the link instead of the provided requirements (e.g. it will setup local pod development # for the link). If the link does not exist, then the pod will be installed normally # link = Pod::Command::Links.get_link(name) unless link.nil? Pod::Command::Links.print "Using link '#{name}' > #{link['path']}" real_pod(name, :path => link['path'], &block) else real_pod(name, *requirements, &block) end end |
#real_pod ⇒ Object
10 |
# File 'lib/pod/pod.rb', line 10 alias_method :real_pod, :pod |