Class: Denshobato::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Denshobato::Generators::InstallGenerator
- Defined in:
- lib/generators/denshobato/install_generator.rb
Instance Method Summary collapse
- #copy_blacklists ⇒ Object
- #copy_conversations ⇒ Object
- #copy_messages ⇒ Object
- #copy_notifications ⇒ Object
- #done ⇒ Object
Instance Method Details
#copy_blacklists ⇒ Object
23 24 25 26 |
# File 'lib/generators/denshobato/install_generator.rb', line 23 def copy_blacklists sleep 1 copy_file './migrations/create_blacklists.rb', "db/migrate/#{time}_create_denshobato_blacklists.rb" end |
#copy_conversations ⇒ Object
7 8 9 10 11 |
# File 'lib/generators/denshobato/install_generator.rb', line 7 def copy_conversations p 'Copying migrations' copy_file './migrations/create_conversations.rb', "db/migrate/#{time}_create_denshobato_conversations.rb" end |
#copy_messages ⇒ Object
13 14 15 16 |
# File 'lib/generators/denshobato/install_generator.rb', line 13 def sleep 1 copy_file './migrations/create_messages.rb', "db/migrate/#{time}_create_denshobato_messages.rb" end |
#copy_notifications ⇒ Object
18 19 20 21 |
# File 'lib/generators/denshobato/install_generator.rb', line 18 def copy_notifications sleep 1 copy_file './migrations/create_notifications.rb', "db/migrate/#{time}_create_denshobato_notifications.rb" end |
#done ⇒ Object
28 29 30 31 |
# File 'lib/generators/denshobato/install_generator.rb', line 28 def done puts 'Denshobato Installed' puts 'Run rake db:migrate' end |