Class: Embryo::TemplateSupportGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
GeneratorHelpers::Hidden
Defined in:
lib/generators/embryo/template_support.rb

Instance Method Summary collapse

Methods included from GeneratorHelpers::Hidden

included, namespaces

Instance Method Details

#installObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/generators/embryo/template_support.rb', line 7

def install
  gem "haml", "~> 4.0"
  gem "haml-rails", ">= 0"
  gem "bootstrap-sass", "~> 3.0"
  create_file "app/views/layouts/application.html.haml", layout_data
  create_file "app/views/layouts/_navigation.html.haml", navigation_data
  create_file "app/views/layouts/_messages.html.haml", messages_data
  create_file "app/assets/javascripts/application.js", javascript_data
  create_file "app/assets/stylesheets/bootstrap-custom.css.scss", stylesheet_data
  remove_file "app/views/layouts/application.html.erb"
end