Sha256: 0782bb47b2a66f8bd32de51048a531ffb448463436996cc691962eda3b02f7ad

Contents?: true

Size: 443 Bytes

Versions: 7

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

def bundle_install
  Bundler.with_unbundled_env { run "bundle install" }
end

run "bundle add haml"
bundle_install

if yes?("Would you like to convert your existing *.erb files to *.haml files? [y/n]")
  run "bundle add erb2haml --group 'development'"
  bundle_install
  if yes?("Would you like to keep the original *.erb files? [y/n]")
    rake "haml:convert_erbs"
  else
    rake "haml:replace_erbs"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails-interactive-2.1.3 lib/cli/templates/setup_haml.rb
rails-interactive-2.1.2 lib/cli/templates/setup_haml.rb
rails-interactive-2.1.1 lib/cli/templates/setup_haml.rb
rails-interactive-2.1.0 lib/cli/templates/setup_haml.rb
rails-interactive-2.0.0 lib/cli/templates/setup_haml.rb
rails-interactive-0.1.9 lib/rails_interactive/templates/setup_haml.rb
rails-interactive-0.1.8 lib/rails_interactive/templates/setup_haml.rb