Class: Eastrails::Components::Haml

Inherits:
Base
  • Object
show all
Includes:
ThorExt
Defined in:
lib/eastrails/components/haml.rb

Instance Method Summary collapse

Methods included from ThorExt

#ask_wizard, #multiple_choice, #no_wizard?, #say_custom, #say_recipe, #say_wizard, #yes_wizard?

Methods inherited from Base

#component_installed?, #dir_html_to_haml, #do_if_installed, #file_html_to_haml, #gems, #html_to_haml, #parse_gemfile

Methods inherited from Generator

#initialize

Constructor Details

This class inherits a constructor from Eastrails::Generator

Instance Method Details

#addObject



7
8
9
10
11
# File 'lib/eastrails/components/haml.rb', line 7

def add
  gem "haml-rails", ">= 0.3.5", :group => :development
  run "bundle install"
  dir_html_to_haml("app/views")
end