Class: Framework::Tree
- Inherits:
-
Object
- Object
- Framework::Tree
- Defined in:
- lib/cocoapods-packager/framework.rb
Instance Attribute Summary collapse
-
#fwk_path ⇒ Object
Returns the value of attribute fwk_path.
-
#headers_path ⇒ Object
readonly
Returns the value of attribute headers_path.
-
#module_map_path ⇒ Object
readonly
Returns the value of attribute module_map_path.
-
#resources_path ⇒ Object
readonly
Returns the value of attribute resources_path.
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
-
#versions_path ⇒ Object
readonly
Returns the value of attribute versions_path.
Instance Method Summary collapse
- #delete_resources ⇒ Object
-
#initialize(name, platform, embedded) ⇒ Tree
constructor
A new instance of Tree.
- #make ⇒ Object
- #process_static_framework ⇒ Object
Constructor Details
#initialize(name, platform, embedded) ⇒ Tree
Returns a new instance of Tree.
15 16 17 18 19 |
# File 'lib/cocoapods-packager/framework.rb', line 15 def initialize(name, platform, ) @name = name @platform = platform @embedded = end |
Instance Attribute Details
#fwk_path ⇒ Object
Returns the value of attribute fwk_path.
9 10 11 |
# File 'lib/cocoapods-packager/framework.rb', line 9 def fwk_path @fwk_path end |
#headers_path ⇒ Object (readonly)
Returns the value of attribute headers_path.
4 5 6 |
# File 'lib/cocoapods-packager/framework.rb', line 4 def headers_path @headers_path end |
#module_map_path ⇒ Object (readonly)
Returns the value of attribute module_map_path.
5 6 7 |
# File 'lib/cocoapods-packager/framework.rb', line 5 def module_map_path @module_map_path end |
#resources_path ⇒ Object (readonly)
Returns the value of attribute resources_path.
6 7 8 |
# File 'lib/cocoapods-packager/framework.rb', line 6 def resources_path @resources_path end |
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
7 8 9 |
# File 'lib/cocoapods-packager/framework.rb', line 7 def root_path @root_path end |
#versions_path ⇒ Object (readonly)
Returns the value of attribute versions_path.
8 9 10 |
# File 'lib/cocoapods-packager/framework.rb', line 8 def versions_path @versions_path end |
Instance Method Details
#delete_resources ⇒ Object
10 11 12 13 |
# File 'lib/cocoapods-packager/framework.rb', line 10 def delete_resources Pathname.new(@resources_path).rmtree (Pathname.new(@fwk_path) + Pathname.new('Resources')).delete end |
#make ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/cocoapods-packager/framework.rb', line 21 def make make_root make_framework make_headers make_resources make_current_version end |
#process_static_framework ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/cocoapods-packager/framework.rb', line 29 def process_static_framework `rm -rf #{@fwk_path}/Headers` `rm -rf #{@fwk_path}/Resources` `rm -rf #{@fwk_path}/#{@name}` `cp -r #{@versions_path}/* #{fwk_path}` `rm -rf #{@fwk_path}/Versions` end |