Sha256: b4930dd8a25c8c0d880ed5f5eab0e06e3862f60cf17a27d3a96695ec2ec4749a
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
require 'pathname' module Pod class Podfile module DSL def folder(path) basePath = Pathname.new path def import_pod(path) podspec = path.children.find do |p| !p.directory? and p.extname == ".podspec" end if podspec != nil pod podspec.basename(".podspec").to_s, :path => path.to_path end path.children.each do |p| if p.directory? import_pod(p) end end end import_pod basePath end end end end
Version data entries
3 entries across 3 versions & 1 rubygems