Sha256: 8f605a8d18354633a56ff486bde1909b20d6a920e9a05f9d60b59155227584d4
Contents?: true
Size: 1.42 KB
Versions: 7
Compression:
Stored size: 1.42 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 standard_sanbox_path self.root.parent 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 def framework_existed?(root_name) return false unless generate_framework_path.exist? generate_framework_path.children().any? do |child| child.basename.to_s == root_name end end end end
Version data entries
7 entries across 7 versions & 1 rubygems