class CBin::Library
Attributes
headers_path[R]
name_path[R]
resources_path[R]
root_path[R]
versions_path[R]
Public Class Methods
new(name, platform, version)
click to toggle source
# File lib/cocoapods-lhj-bin/helpers/library.rb, line 11 def initialize(name, platform, version) @name = name @platform = platform @version = version end
Public Instance Methods
delete_resources()
click to toggle source
# File lib/cocoapods-lhj-bin/helpers/library.rb, line 24 def delete_resources Pathname.new(@resources_path).rmtree (Pathname.new(@fwk_path) + Pathname.new('Resources')).delete end
make()
click to toggle source
# File lib/cocoapods-lhj-bin/helpers/library.rb, line 17 def make make_root make_library make_headers make_resources end
Private Instance Methods
make_headers()
click to toggle source
# File lib/cocoapods-lhj-bin/helpers/library.rb, line 39 def make_headers @headers_path = @versions_path + Pathname.new('Headers') @headers_path.mkpath unless @headers_path.exist? end
make_library()
click to toggle source
# File lib/cocoapods-lhj-bin/helpers/library.rb, line 31 def make_library @name_path = CBin::Config::Builder.instance.library_name_version(@name,@version) @fwk_path = @root_path + Pathname.new(@name_path) @fwk_path.mkdir unless @fwk_path.exist? @versions_path = @fwk_path end
make_resources()
click to toggle source
# File lib/cocoapods-lhj-bin/helpers/library.rb, line 44 def make_resources @resources_path = @versions_path + Pathname.new('Resources') @resources_path.mkpath unless @resources_path.exist? end
make_root()
click to toggle source
# File lib/cocoapods-lhj-bin/helpers/library.rb, line 49 def make_root @root_path = Pathname.new(@platform) @root_path.mkpath unless @root_path.exist? end