Sha256: 4b5b08b9e88f15c36e69ecd08afb6fee3c68a60aa1009769a499f812386b6a31
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 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. ################################################################################ require 'ruboss4ruby/configuration' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruboss4ruby-1.0.2 | rails_generators/ruboss_controller/ruboss_controller_generator.rb |
ruboss4ruby-1.0.1 | rails_generators/ruboss_controller/ruboss_controller_generator.rb |