Sha256: 14260069a55490b86e9545cd9e9a93e6bb9161fc92d1e9114fbe11d859005961
Contents?: true
Size: 974 Bytes
Versions: 9
Compression:
Stored size: 974 Bytes
Contents
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
Version data entries
9 entries across 9 versions & 1 rubygems