Sha256: 00857b8d93c04f1b2b6b07bf21a0b433083c13b6995f16d59164284f6177984d
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'pathname' require_relative 'utiltiy' module Pod class Podfile module DSL def folder(path, *requirements) basePath = Pathname.new path def import_pod(path, *requirements) podspec = path.children.find do |p| !p.directory? and (p.extname == ".podspec" or p.basename.to_s.end_with? ".podspec.json") end if podspec != nil options = (requirements.last || {}).clone options[:path] = unify_path(path).to_path name = podspec.basename(".json") name = name.basename(".podspec") pod(name.to_s, options) end path.children.each do |p| if p.directory? import_pod(p, *requirements) end end end import_pod basePath, *requirements end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-developing-folder-0.5.4 | lib/cocoapods-developing-folder/folder_DSL.rb |