Class: Pod::Target
- Inherits:
-
Object
- Object
- Pod::Target
- Defined in:
- lib/cocoapods-project-hmap/pod_target.rb
Instance Attribute Summary collapse
-
#prebuilt_hmap_target_names ⇒ Object
Returns the value of attribute prebuilt_hmap_target_names.
Instance Method Summary collapse
- #add_prebuilt_hmap_target(name) ⇒ Object
- #concat_prebuilt_hmap_targets(names) ⇒ Object
- #save_hmap(hmap) ⇒ Object
Instance Attribute Details
#prebuilt_hmap_target_names ⇒ Object
Returns the value of attribute prebuilt_hmap_target_names.
10 11 12 |
# File 'lib/cocoapods-project-hmap/pod_target.rb', line 10 def prebuilt_hmap_target_names @prebuilt_hmap_target_names end |
Instance Method Details
#add_prebuilt_hmap_target(name) ⇒ Object
25 26 27 28 |
# File 'lib/cocoapods-project-hmap/pod_target.rb', line 25 def add_prebuilt_hmap_target(name) @prebuilt_hmap_target_names = Array.new if @prebuilt_hmap_target_names == nil @prebuilt_hmap_target_names << name end |
#concat_prebuilt_hmap_targets(names) ⇒ Object
29 30 31 32 |
# File 'lib/cocoapods-project-hmap/pod_target.rb', line 29 def concat_prebuilt_hmap_targets(names) @prebuilt_hmap_target_names = Array.new if @prebuilt_hmap_target_names == nil @prebuilt_hmap_target_names.concat(names) if names end |
#save_hmap(hmap) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cocoapods-project-hmap/pod_target.rb', line 11 def save_hmap(hmap) if hmap.empty? == false target_hmap_name="#{name}.hmap" relative_hmap_path = "#{SAVED_HMAP_DIR}/#{target_hmap_name}" target_hmap_path = sandbox.root.to_s + "/#{relative_hmap_path}" hmaps_dir = sandbox.root.to_s + "/#{SAVED_HMAP_DIR}" unless File.exist?(hmaps_dir) Dir.mkdir(hmaps_dir) end if hmap.save_to(target_hmap_path) reset_header_search_with_relative_hmap_path(relative_hmap_path) end end end |