Sha256: 0b55fadb79ef8778379ff52b32097bee9a81ade2e479a96d5191570ea4929b24

Contents?: true

Size: 958 Bytes

Versions: 3

Compression:

Stored size: 958 Bytes

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"
                    end
                    if podspec != nil 
                        options = (requirements.last || {}).clone 
                        options[:path] = unify_path(path).to_path
                        pod(podspec.basename(".podspec").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

3 entries across 3 versions & 1 rubygems

Version Path
cocoapods-developing-folder-0.5.3 lib/cocoapods-developing-folder/folder_DSL.rb
cocoapods-developing-folder-0.5.2 lib/cocoapods-developing-folder/folder_DSL.rb
cocoapods-developing-folder-0.5.1 lib/cocoapods-developing-folder/folder_DSL.rb