Class: Village::Generators::SetupGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/village/setup/setup_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

banner, source_root

Instance Method Details

#setupObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/village/setup/setup_generator.rb', line 10

def setup
  template 'village_config.yml', 'config/village_config.yml'
  gem "haml-rails"
  refresh_bundle
  setup_pages if options.pages
  setup_articles if options.articles
  setup_markdown
rescue Exception => e
  print_notes(e.message,"error",:red)
end