class Georgia::Generators::SetupGenerator

Public Instance Methods

create_admin_user() click to toggle source
# File lib/generators/georgia/setup/setup_generator.rb, line 15
def create_admin_user
  say("You're almost done. You need an admin user to get started.", :yellow)
  rake "georgia:seed"
end
create_indexes() click to toggle source
# File lib/generators/georgia/setup/setup_generator.rb, line 20
def create_indexes
  Georgia::Page.__elasticsearch__.create_index!
  Ckeditor::Asset.__elasticsearch__.create_index!
  Ckeditor::Picture.__elasticsearch__.create_index!
  ActsAsTaggableOn::Tag.__elasticsearch__.create_index!
end
run_migrations() click to toggle source
# File lib/generators/georgia/setup/setup_generator.rb, line 11
def run_migrations
  rake "db:migrate"
end