Class: RailsNewApp::TemplateEngineProcessor

Inherits:
Processor
  • Object
show all
Defined in:
lib/rails-new-app/processors/template_engine_processor.rb

Constant Summary

Constants inherited from Processor

Processor::PATH

Instance Method Summary collapse

Methods inherited from Processor

#apply_template, configure, #configure, update_gemfile

Instance Method Details

#update_gemfile(config) ⇒ Object



3
4
5
6
7
8
# File 'lib/rails-new-app/processors/template_engine_processor.rb', line 3

def update_gemfile(config)
  case config[:template_engine][:key]
  when "slim" then apply_template "slim-gemfile"
  when "haml" then apply_template "haml-gemfile"
  end
end