Sha256: a7d684b0f60256ddf4f4b5aa09de77392dad56fd74af8bedbe4603849d967444
Contents?: true
Size: 758 Bytes
Versions: 6
Compression:
Stored size: 758 Bytes
Contents
require 'generators/helpers/file_helper' module Lolita module Generators class InstallGenerator < Rails::Generators::Base include Lolita::Generators::FileHelper source_root File.expand_path("../../templates", __FILE__) desc "Create lolita initializer. Copy assets and create migrations. Load seed data." def copy_initializer template "lolita.rb", "config/initializers/lolita.rb" unless file_exists?("config/initializers/lolita.rb") end def copy_assets generate("lolita:assets") end def install_modules Lolita.modules.each do |module_name| invoke "#{module_name.to_s.underscore.gsub("/","_")}:install" end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems