Class: Denshobato::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/denshobato/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_blacklistsObject



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_conversationsObject



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_messagesObject



13
14
15
16
# File 'lib/generators/denshobato/install_generator.rb', line 13

def copy_messages
  sleep 1
  copy_file './migrations/create_messages.rb', "db/migrate/#{time}_create_denshobato_messages.rb"
end

#copy_notificationsObject



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

#doneObject



28
29
30
31
# File 'lib/generators/denshobato/install_generator.rb', line 28

def done
  puts 'Denshobato Installed'
  puts 'Run rake db:migrate'
end