Class: Pageflow::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_allObject


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/generators/pageflow/install/install_generator.rb', line 7

def generate_all
  generate 'active_admin:install User --skip-users'
  generate 'active_admin:devise User --no-default-user'
  generate 'friendly_id'

  invoke 'pageflow:cancan'
  invoke 'pageflow:resque'

  invoke 'pageflow:assets'
  invoke 'pageflow:initializer'
  invoke 'pageflow:routes'
  invoke 'pageflow:user'
  invoke 'pageflow:seeds'
  invoke 'pageflow:active_admin_menu'

  rake 'pageflow:install:migrations'
end