Sha256: 3012eafa07b29579ae84945378459fb0b369dce5cec95a2ab727755193c0a145
Contents?: true
Size: 931 Bytes
Versions: 4
Compression:
Stored size: 931 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'ruboss4ruby') if !defined?(Ruboss4Ruby) class RubossControllerGenerator < Rails::Generator::Base include Ruboss4Ruby::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") @command_names = list_as_files("app/flex/#{base_folder}/commands") 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
4 entries across 4 versions & 2 rubygems