Sha256: 50b44aa793b377fe14cf1ae2eff0bfdef79689a0fe3090c3a5d6559232e2dc50
Contents?: true
Size: 414 Bytes
Versions: 5
Compression:
Stored size: 414 Bytes
Contents
task :generate_dd_initializer do template_path = File.join(File.dirname(__FILE__), 'templates/database_documenter.rb').freeze initializer_path = 'config/initializers/database_documenter.rb'.freeze # Check if the initializer already exists abort("Initializer already exists") if File.file?(initializer_path) # Copy the template to the initializers dir FileUtils.cp(template_path, initializer_path) end
Version data entries
5 entries across 5 versions & 1 rubygems