lib/cocoapods-tdf-bin/native/podfile.rb in cocoapods-tdf-bin-0.0.30 vs lib/cocoapods-tdf-bin/native/podfile.rb in cocoapods-tdf-bin-0.0.31

- old
+ new

@@ -11,13 +11,29 @@ module DSL def allow_prerelease! set_internal_hash_value(ALLOW_PRERELEASE, true) end - def batch_pod_local(pods, path = "../../") + def batch_pod(pods, path = "../../", *requirements) + isLocal = requirements[0][:isLocal] + branch = requirements[0][:branch] + if isLocal.nil? + isLocal = false + end + if branch.nil? + branch = "master" + end + if isLocal + batch_pod_local(pods, path, branch) + else + batch_pod_remote(pods, branch) + end + end + + def batch_pod_local(pods, path = "../../", branch = "master") pod_hash = Hash.new pods.each do |name| - pod_hash[name] = [ :path => "#{path}#{name}" ] + pod_hash[name] = [ :path => "#{path}#{name}", :branch => branch ] end if get_batch_local_pods.nil? set_internal_hash_value(BATCH_POD_LOCAL, pod_hash) else set_internal_hash_value(BATCH_POD_LOCAL, get_internal_hash_value(BATCH_POD_LOCAL).merge(pod_hash))