Class: Pod::Local
- Inherits:
-
Object
- Object
- Pod::Local
- Defined in:
- lib/core_blur/thin/local.rb
Instance Attribute Summary collapse
-
#reference_pods ⇒ Object
Returns the value of attribute reference_pods.
Instance Method Summary collapse
- #deps_yaml ⇒ Object
-
#initialize ⇒ Local
constructor
A new instance of Local.
Constructor Details
#initialize ⇒ Local
Returns a new instance of Local.
5 6 7 8 |
# File 'lib/core_blur/thin/local.rb', line 5 def initialize super @reference_pods = [] end |
Instance Attribute Details
#reference_pods ⇒ Object
Returns the value of attribute reference_pods.
9 10 11 |
# File 'lib/core_blur/thin/local.rb', line 9 def reference_pods @reference_pods end |
Instance Method Details
#deps_yaml ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/core_blur/thin/local.rb', line 10 def deps_yaml yaml_dep = YamlDep.new yaml_dep.generate_yaml podfile_local_yaml = yaml_dep.podfile_local_yaml yaml_dep.read_yaml_deps_file(podfile_local_yaml) yaml_dependencies = yaml_dep.yaml_deps[podfile_local_yaml] if yaml_dependencies yaml_dependencies.keys.each do |pod| real_pod = pod.split("/")[0] unless reference_pods.include?(real_pod) reference_pods << real_pod end end end reference_pods end |