Class: Fumoffu::Generators::Configuration
- Defined in:
- lib/fumoffu/generators/fumoffu_config_generator.rb
Class Method Summary collapse
-
.generate ⇒ Object
:call-seq: generate().
Class Method Details
.generate ⇒ Object
:call-seq:
generate()
Use this to generate the application configuration skeleton
Fumoffu::Generators::Configuration.generate
Generate default configuration files for the engine component of the application which by default contains 2 parts the file used for the initialization of the application and also the tasks related the application engine.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/fumoffu/generators/fumoffu_config_generator.rb', line 15 def self.generate source_dir = File.dirname(__FILE__) mkdir_p "#{Fumoffu::Application.app_dir}/engine", :verbose => false mkdir_p "#{Fumoffu::Application.app_dir}/engine/config", :verbose => false self.generate_engine mkdir_p "#{Fumoffu::Application.app_dir}/engine/config/tasks", :verbose => false # We include the default files cp "#{source_dir}/tasks/package.rake", "#{Fumoffu::Application.app_dir}/engine/config/tasks", :verbose => false cp "#{source_dir}/tasks/generator.rake", "#{Fumoffu::Application.app_dir}/engine/config/tasks", :verbose => false cp "#{source_dir}/templates/build_configuration.rb", "#{Fumoffu::Application.app_dir}/", :verbose => false cp "#{source_dir}/templates/Gemfile", "#{Fumoffu::Application.app_dir}/", :verbose => false cp "#{source_dir}/templates/Rakefile", "#{Fumoffu::Application.app_dir}/", :verbose => false end |