module StaticFramework class Tree attr_reader :headers_path attr_reader :private_headers_path attr_reader :module_map_path attr_reader :root_path attr_reader :fwk_path def initialize(name, at_path) @name = name @at_path = at_path make end def make make_root make_framework end private def make_framework @fwk_path = @root_path + Pathname.new(@name + '.framework') @fwk_path.rmtree if @fwk_path.exist? @fwk_path.mkdir @module_map_path = @fwk_path + Pathname.new('Modules') @headers_path = @fwk_path + Pathname.new('Headers') @headers_path.mkpath unless @headers_path.exist? @private_headers_path = @fwk_path + Pathname.new('PrivateHeaders') end def make_root @root_path = Pathname.new(@at_path) @root_path.mkpath unless @root_path.exist? end end end