Class: TechnoGate::Contao::Generators::Localconfig
- Defined in:
- lib/contao/generators/localconfig.rb
Defined Under Namespace
Classes: LocalconfigRequired
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from TechnoGate::Contao::Generators::Base
Instance Method Details
#generate ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/contao/generators/localconfig.rb', line 9 def generate require_localconfig config = Contao::Application.config File.open localconfig_path, 'w' do |f| f.write ERB.new(File.read([:template]), nil, '-').result(binding) end end |