Method: ProjectHelper#process_capabilities

Defined in:
lib/project_helper.rb

#process_capabilities(capabilities_hash) ⇒ Object



66
67
68
69
70
71
72
73
74
75
# File 'lib/project_helper.rb', line 66

def process_capabilities(capabilities_hash)
  capabilities_hash.each do |target_name, capabilities|
    @project.targets.each do |target|
      if target_name == target.to_s
        helper = CapabilitiesHelper.new(@project, target)
        capabilities.each { |c| helper.enable_capability(c) }
      end
    end
  end
end