Sha256: 5f1e2a1792a5719b354ba4cf4832af0e86f3fd18a69af1574301b22ad8d78f2c

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

module Pod
    class PrebuildSandbox < Sandbox

        # [String] standard_sandbox_path
        def self.from_standard_sanbox_path(path)
            prebuild_sandbox_path = Pathname.new(path).realpath + "_Prebuild"
            self.new(prebuild_sandbox_path)
        end

        def self.from_standard_sandbox(sandbox)
            self.from_standard_sanbox_path(sandbox.root)
        end
        
        def generate_framework_path
            self.root + "GeneratedFrameworks"
        end

        def framework_folder_path_for_pod_name(name)
            self.generate_framework_path + name
        end

        def exsited_framework_names
            return [] unless generate_framework_path.exist?
            generate_framework_path.children().map do |framework_name|
                if framework_name.directory?
                    if not framework_name.children.empty?
                        File.basename(framework_name)
                    else
                        nil
                    end
                else
                    nil
                end
            end.reject(&:nil?)
        end

    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-binary-0.3.1 lib/cocoapods-binary/helper/prebuild_sandbox.rb
cocoapods-binary-0.3 lib/cocoapods-binary/helper/prebuild_sandbox.rb