Class: Framework::Tree

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-util/command/package/helper/framework.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, platform, contains_resources = false) ⇒ Tree

Returns a new instance of Tree.



15
16
17
18
19
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 15

def initialize(name, platform, contains_resources=false)
  @name = name
  @platform = platform
  @contains_resources = contains_resources
end

Instance Attribute Details

#fwk_pathObject (readonly)

Returns the value of attribute fwk_path.



8
9
10
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 8

def fwk_path
  @fwk_path
end

#headers_pathObject (readonly)

Returns the value of attribute headers_path.



3
4
5
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 3

def headers_path
  @headers_path
end

#module_map_pathObject (readonly)

Returns the value of attribute module_map_path.



4
5
6
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 4

def module_map_path
  @module_map_path
end

#resources_pathObject (readonly)

Returns the value of attribute resources_path.



5
6
7
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 5

def resources_path
  @resources_path
end

#root_pathObject (readonly)

Returns the value of attribute root_path.



6
7
8
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 6

def root_path
  @root_path
end

#versions_pathObject (readonly)

Returns the value of attribute versions_path.



7
8
9
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 7

def versions_path
  @versions_path
end

Instance Method Details

#delete_resourcesObject



10
11
12
13
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 10

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

#makeObject



21
22
23
24
25
26
27
# File 'lib/cocoapods-util/command/package/helper/framework.rb', line 21

def make
  make_root
  make_framework
  make_headers
  make_resources if @contains_resources
  make_current_version
end