Sha256: 96a170b3398c0921746b5f52b8742453946a5d40e2f7693f0289afdf32bbe8ad
Contents?: true
Size: 832 Bytes
Versions: 5
Compression:
Stored size: 832 Bytes
Contents
class CairngormGenerator < Rails::Generator::NamedBase def manifest record do |m| BASEDIRS.each { |path| m.directory File.join('src', class_path, file_name, path) } m.template "main_template.mxml", "src/main.mxml" m.file "Services_template.mxml", File.join('src', class_path, file_name, "business/Services.mxml") m.template "Controller_template.as", File.join('src', class_path, file_name, "control/#{file_name.camelcase}Controller.as") m.template "ModelLocator_template.as", File.join('src', class_path, file_name, "model/#{file_name.camelcase}ModelLocator.as") m.template "ValueObjectUtil_template.as", File.join('src', class_path, file_name, "util/ValueObjectUtil.as") end end BASEDIRS = %w( business command control model util view vo ) end
Version data entries
5 entries across 5 versions & 2 rubygems