lib/generators/katapult/basics/basics_generator.rb in katapult-0.3.0 vs lib/generators/katapult/basics/basics_generator.rb in katapult-0.4.0

- old
+ new

@@ -1,8 +1,8 @@ # Generates model-independent application basics (see method names). -require 'katapult/generator_goodies' +require 'katapult/support/generator_goodies' require 'katapult/version' # For writing .ruby-version module Katapult module Generators class BasicsGenerator < Rails::Generators::Base @@ -24,19 +24,14 @@ class_option :db_user, type: :string, default: '', description: 'The user to set in config/database.yml' class_option :db_password, type: :string, default: '', description: 'The password to set in config/database.yml' - def write_ruby_version + def add_basic_files template '.ruby-version' - end - - def add_gitignore template '.gitignore', force: true - end - - def add_robots_txt template 'public/robots.txt', force: true + template 'README.md', force: true end # Gems ################################################################### def enhance_gemfile