Class: CBin::LocalLibrary

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb,
lib/cocoapods-imy-bin/helpers/local/local_library_builder.rb

Defined Under Namespace

Classes: Builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, platform, version) ⇒ LocalLibrary

Returns a new instance of LocalLibrary.



14
15
16
17
18
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 14

def initialize(name, platform, version)
  @name = name
  @platform = platform
  @version = version
end

Instance Attribute Details

#headers_pathObject (readonly)

Returns the value of attribute headers_path.



8
9
10
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 8

def headers_path
  @headers_path
end

#name_pathObject (readonly)

Returns the value of attribute name_path.



12
13
14
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 12

def name_path
  @name_path
end

#resources_pathObject (readonly)

Returns the value of attribute resources_path.



9
10
11
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 9

def resources_path
  @resources_path
end

#root_pathObject (readonly)

Returns the value of attribute root_path.



10
11
12
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 10

def root_path
  @root_path
end

#versions_pathObject (readonly)

Returns the value of attribute versions_path.



11
12
13
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 11

def versions_path
  @versions_path
end

Instance Method Details

#delete_resourcesObject



27
28
29
30
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 27

def delete_resources
  Pathname.new(@resources_path).rmtree
  (Pathname.new(@fwk_path) + Pathname.new('Resources')).delete
end

#makeObject



20
21
22
23
24
25
# File 'lib/cocoapods-imy-bin/helpers/local/loca_llibrary.rb', line 20

def make
  make_root
  make_library
  make_headers
  make_resources
end