class Pod::Target::Commands::Parser
Attributes
regex[R]
workspace[R]
workspace_dir[R]
Public Class Methods
new(workspace_path)
click to toggle source
# File lib/pod/target/commands/resolve/parser.rb, line 8 def initialize(workspace_path) @workspace_dir = File.dirname(workspace_path) @workspace = Xcodeproj::Workspace.new_from_xcworkspace(workspace_path) end
Public Instance Methods
all_targets()
click to toggle source
# File lib/pod/target/commands/resolve/parser.rb, line 13 def all_targets @projects ||= projects projects.flat_map(&:targets) end
projects()
click to toggle source
# File lib/pod/target/commands/resolve/parser.rb, line 18 def projects all_project_paths = @workspace.file_references.map(&:path) all_project_paths.map do |project_path| Xcodeproj::Project.open(File.expand_path(project_path, @workspace_dir)) end end