lib/generic_app.rb in generic_app-3.0.0 vs lib/generic_app.rb in generic_app-3.0.1

- old
+ new

@@ -3,13 +3,10 @@ require 'generic_app/version' require 'string_in_file' require 'line_containing' require 'remove_double_blank' -DIR_MAIN = File.expand_path('../../', __FILE__) -DIR_PARENT = File.expand_path('../../../', __FILE__) - # module GenericApp # Create app, stick with SQLite database in development def self.create_new(subdir_name, email, title) t1 = Thread.new { git_clone(subdir_name) } @@ -17,10 +14,11 @@ remove_neutrino(subdir_name) remove_heroku_name(subdir_name) email_update(subdir_name, email) remove_badges(subdir_name) update_titles(subdir_name, title) + update_todo(subdir_name) git_init(subdir_name) print_end_msg(subdir_name) end def self.remove_heroku_name(subdir_name) @@ -68,9 +66,15 @@ array_files.each do |f| StringInFile.replace('Generic App Template', title, f) StringInFile.replace('GENERIC APP TEMPLATE', title, f) end + end + + def self.update_todo(subdir_name) + url_todo = 'https://gist.github.com/jhsu802701/fdfd6e0732773b379413625463f2d2c0' + msg_todo = "Go to #{url_todo} for further instructions." + StringInFile.write("#{msg_todo}\n", "#{subdir_name}/README-to_do.txt") end def self.git_init(subdir_name) puts '-----------------------' puts 'Removing old Git record'