Sha256: c2750a5b7f11291c69dbe9bbb55e66e64c616287cfa48863c3205d7502091790
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'restfulx') if !defined?(RestfulX) module Rails module Generator module Commands class Create include SchemaToYaml end end end end class RxMainAppGenerator < Rails::Generator::Base include RestfulX::Configuration attr_reader :project_name, :flex_project_name, :base_package, :base_folder, :command_controller_name, :model_names, :component_names, :controller_names, :use_air, :application_tag, :flex_root, :distributed def initialize(runtime_args, runtime_options = {}) super @project_name, @flex_project_name, @command_controller_name, @base_package, @base_folder, @flex_root, @distributed = extract_names project_file_name = APP_ROOT + '/.project' if File.exist?(project_file_name) @use_air = true if File.read(project_file_name) =~/com.adobe.flexbuilder.apollo.apollobuilder/m end if @use_air @application_tag = 'WindowedApplication' else @application_tag = 'Application' end @component_names = [] if File.exists?("#{flex_root}/#{base_folder}/components/generated") @component_names = list_mxml_files("#{flex_root}/#{base_folder}/components/generated") end end def manifest record do |m| m.template 'mainapp.mxml', File.join("#{flex_root}", "#{flex_project_name}.mxml") end end def banner "Usage: #{$0} #{spec.name}" end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
dima-restfulx-1.2.2 | rails_generators/rx_main_app/rx_main_app_generator.rb |
restfulx-1.2.2 | rails_generators/rx_main_app/rx_main_app_generator.rb |