Class: Blacksand::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#installObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/generators/blacksand/install_generator.rb', line 7

def install
  create_file("config/initializers/blacksand.rb", "Blacksand.site_id   = 'site id'\nBlacksand.site_name = 'site name'\n\n# Config carrierwave\n#\n# Blacksand.carrierwave_storage          = :file # or :qiniu\n# Blacksand.carrierwave_store_dir_prefix = \"uploads\" # NOTICE: Kindeditor need config their own configuration\n\n# Setup authentication to be run as a before filter \n# @example Devise admin\n#   Blacksand.authenticate_with do\n#     authenticate_admin!\n#   end\n\n# Page caching\n# Blacksand.page_caching = false\n  RUBY\n\n  rake 'railties:install:migrations'\nend\n")