Class: Ubiquo::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/ubiquo/generator.rb

Overview

– UBIQUO_PLUGINS should be controlled by profile – appname must be provided by opts TODO: exception_recipient must be provided by ? (default?) TODO: sender_adress must be provided by ? (default?) – choosen_adapter must be provided by opts (sqlite is sqlite3 in tpls) – PROBLEM: routes only profile plugins should add to routes. TODO: IMPROVEMENT RAILS_GEM_VERSION could be set in options – :branch parameter in add_plugins should be set using opts

Class Method Summary collapse

Class Method Details

.build_template(opts, skeleton) ⇒ Object



12
13
14
15
16
# File 'lib/ubiquo/generator.rb', line 12

def build_template(opts, skeleton)
  @opts = opts
  template = ERB.new(File.read(skeleton), 0, "%<>")
  template.result(binding)
end