Class: Xcake::ProjectGenerator

Inherits:
Generator show all
Defined in:
lib/xcake/generator/project_generator.rb

Instance Attribute Summary

Attributes inherited from Generator

#context

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Generator

#initialize, plugins_location

Methods included from CoreExtensions::ClassDescendants

#descendants

Methods included from Visitor

#item_name, #leave, #visit

Methods included from Plugin

included

Methods included from Dependency

included

Constructor Details

This class inherits a constructor from Xcake::Generator

Class Method Details

.dependenciesObject



3
4
5
6
7
# File 'lib/xcake/generator/project_generator.rb', line 3

def self.dependencies
  Generator.descendants.reject do |g|
    g == self
  end
end

Instance Method Details

#leave_project(project) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/xcake/generator/project_generator.rb', line 9

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