Sha256: c4face1cbdf4ce79a5fcfe39d616a2d644d08d2d1066b7ff745d1133cf2916d4

Contents?: true

Size: 891 Bytes

Versions: 1

Compression:

Stored size: 891 Bytes

Contents

module Xcake
  # This class handles resolving the structure
  # of a project. Making sure that the structure of the
  # project is one Xcode can open and makes sense.
  #
  # As part of this it will create default configurations
  # if none are provided and will make sure both the project
  # and targets have all of the same configurations.
  class ProjectStructureGenerator < Generator
    attr_accessor :project

    def visit_project(project)
      puts 'Resolving Project...'

      @project = project
    end

    def leave_project(project)
    end

    def visit_target(target)
      puts "Resolving target #{target}..."

      @project.all_configurations.each do |c|
        target.configuration(c.name, c.type)
      end
    end

    def leave_target(target)
    end

    def visit_configuration(configuration)
    end

    def leave_configuration(configuration)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xcake-0.6.20 lib/xcake/generator/project_structure_generator.rb