Class: Gemaker::Cmd::CustomizeEngine
- Defined in:
- lib/gemaker/commands/customize_engine.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from Util
#copy_file, #copy_template, #create_dir, #error, #execute, #execute_in_gem, #gem_root_path, #get_destination_path, #get_template_path, #info, #parse_erb, #remove_in_gem, #utils_path
Instance Method Details
#in_engine_context ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/gemaker/commands/customize_engine.rb', line 4 def in_engine_context copy_template("engine/engine.rb", "lib/#{@config.gem_name}/engine.rb", config: @config) copy_template("engine/example_class.rb", "lib/#{@config.gem_name}/example_class.rb", config: @config) info "Customize engine.rb" end |