Sha256: 387138a2badf8cc54dc7b577f0bf64cf27b596c4e704d090979c53c65494cc23

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

module Xcake
  class ProjectGenerator < Generator
    def self.dependencies
      Generator.descendants.reject do |g|
        g == self
      end
    end

    def leave_project(project)
      native_project = @context.native_object_for(project)
      project.run_hook :before_save, native_project
      native_project.save
      project.run_hook :after_save

      EventHooks.run_hook :after_project_save
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/generator/project_generator.rb
xcake-0.12.1 lib/xcake/generator/project_generator.rb
xcake-0.12.0 lib/xcake/generator/project_generator.rb
xcake-0.11.0 lib/xcake/generator/project_generator.rb
xcake-0.10.0 lib/xcake/generator/project_generator.rb
xcake-0.9.4 lib/xcake/generator/project_generator.rb
xcake-0.9.3 lib/xcake/generator/project_generator.rb
xcake-0.9.2 lib/xcake/generator/project_generator.rb