Sha256: 8295ed12fc6e761f17ef7443a9b5bc253e3bea694a5174716fac7ab5b4bae105
Contents?: true
Size: 777 Bytes
Versions: 6
Compression:
Stored size: 777 Bytes
Contents
module Kms class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../../../../', __FILE__) def copy_initializers @source_paths = nil # reset it for the find_in_source_paths method Kms::InstallGenerator.source_root(File.expand_path('../templates', __FILE__)) template 'devise.rb', 'config/initializers/devise.rb' template 'dragonfly.rb', 'config/initializers/dragonfly.rb' template 'carrierwave.rb', 'config/initializers/carrierwave.rb' end def insert_engine_routes route %( mount Kms::Engine => '/kms', as: 'kms' ) end def remove_index_html remove_file 'public/index.html' end private def generate_secret SecureRandom.hex(32) end end end
Version data entries
6 entries across 6 versions & 1 rubygems