Sha256: f75b7af9e21af5e775ca767db0615e0dea3cad5b67cdb104d9e93a6db4db4421
Contents?: true
Size: 760 Bytes
Versions: 3
Compression:
Stored size: 760 Bytes
Contents
class EmergentControllerGenerator < Rails::Generator::NamedBase include RestfulX::Configuration attr_reader :project_name, :flex_project_name, :base_package, :base_folder, :command_controller_name, :model_names, :command_names def initialize(runtime_args, runtime_options = {}) super @project_name, @flex_project_name, @command_controller_name, @base_package, @base_folder = extract_names @model_names = list_as_files("app/flex/#{base_folder}/models") end def manifest record do |m| m.template 'controller.as.erb', File.join("app/flex/#{base_folder}/controllers", "#{command_controller_name}.as") end end end
Version data entries
3 entries across 3 versions & 1 rubygems