Sha256: 178d66ee2affc5cb000c62aa42d6c8dcbc8a6e5aa2c278f2f8a9d12718dbf4cd

Contents?: true

Size: 570 Bytes

Versions: 13

Compression:

Stored size: 570 Bytes

Contents

after_bundler do
  say_wizard "recipe running after 'bundle install'"

  # Convert all views to Haml
  run "for i in `find app/views -name '*.erb'` ; do html2haml -e $i ${i%erb}haml ; rm $i ; done"

  ### GIT ###
  git :add => '.' if prefer :git, true
  git :commit => "-aqm 'rails_apps_composer: Haml starter views.'" if prefer :git, true
end # after_bundler

__END__

name: haml_views
description: "Convert views to Haml"
author: tubbo

requires: [setup, gems, auth, models, controllers, views]
run_after: [setup, gems, auth, models, controllers, views]
category: mvc

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zsh_dots-0.6.5 etc/rails/recipes/haml_views.rb
zsh_dots-0.6.3 etc/rails/recipes/haml_views.rb
zsh_dots-0.6.2 etc/rails/recipes/haml_views.rb
zsh_dots-0.6.0 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.9 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.8 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.7 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.6 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.5 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.4 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.3 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.1 etc/rails/recipes/haml_views.rb
zsh_dots-0.5.0 etc/rails/recipes/haml_views.rb