Class: KZ::KZConfigResult
- Inherits:
-
Object
- Object
- KZ::KZConfigResult
- Defined in:
- lib/cocoapods-kz/helpers/kz_config_result.rb
Instance Attribute Summary collapse
-
#kz_pod_target ⇒ Object
Returns the value of attribute kz_pod_target.
-
#name ⇒ Object
Returns the value of attribute name.
-
#resource_path ⇒ Object
Returns the value of attribute resource_path.
Instance Method Summary collapse
- #get_bundle_paths ⇒ Object
- #get_framework_paths ⇒ Object
-
#initialize(kz_pod_target) ⇒ KZConfigResult
constructor
A new instance of KZConfigResult.
Constructor Details
#initialize(kz_pod_target) ⇒ KZConfigResult
Returns a new instance of KZConfigResult.
9 10 11 12 |
# File 'lib/cocoapods-kz/helpers/kz_config_result.rb', line 9 def initialize(kz_pod_target) @name = kz_pod_target.name @kz_pod_target = kz_pod_target end |
Instance Attribute Details
#kz_pod_target ⇒ Object
Returns the value of attribute kz_pod_target.
6 7 8 |
# File 'lib/cocoapods-kz/helpers/kz_config_result.rb', line 6 def kz_pod_target @kz_pod_target end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/cocoapods-kz/helpers/kz_config_result.rb', line 5 def name @name end |
#resource_path ⇒ Object
Returns the value of attribute resource_path.
7 8 9 |
# File 'lib/cocoapods-kz/helpers/kz_config_result.rb', line 7 def resource_path @resource_path end |
Instance Method Details
#get_bundle_paths ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cocoapods-kz/helpers/kz_config_result.rb', line 14 def get_bundle_paths bundle_paths = [] Dir.foreach(@resource_path) do |bundle_name| next if bundle_name == '.' || bundle_name == '..' || bundle_name == '.DS_Store' bundle_path = @resource_path + bundle_name if File.directory?(bundle_path) && bundle_name.end_with?(".bundle") bundle_paths << bundle_path end end bundle_paths end |
#get_framework_paths ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/cocoapods-kz/helpers/kz_config_result.rb', line 27 def get_framework_paths framework_paths = [] Dir.foreach(@resource_path) do |framework_name| next if framework_name == '.' || framework_name == '..' || framework_name == '.DS_Store' framework_path = @resource_path + framework_name if File.directory?(framework_path) && framework_name.end_with?(".xcframework") framework_paths << framework_path end end framework_paths end |