Sha256: d6bba64f3c88b631d5e4bf0030c7a2412544ca229e5527293caa53ef3b8e86f2
Contents?: true
Size: 1.62 KB
Versions: 3
Compression:
Stored size: 1.62 KB
Contents
################################################################################ # Copyright 2008, Ruboss Technology Corporation. # # This software is dual-licensed under both the terms of the Ruboss Commercial # License v1 (RCL v1) as published by Ruboss Technology Corporation and under # the terms of the GNU General Public License v3 (GPL v3) as published by the # Free Software Foundation. # # Both the RCL v1 (rcl-1.0.txt) and the GPL v3 (gpl-3.0.txt) are included in # the source code. If you have purchased a commercial license then only the # RCL v1 applies; otherwise, only the GPL v3 applies. To learn more or to buy a # commercial license, please go to http://ruboss.com. ################################################################################ class RubossControllerGenerator < Rails::Generator::Base include Ruboss::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 protected def banner "Usage: #{$0} #{spec.name}" end end
Version data entries
3 entries across 3 versions & 1 rubygems