Sha256: 04bdd25777c4189c411a27ff5d264556ca4732f31020c28c18c6afb5451a1043
Contents?: true
Size: 615 Bytes
Versions: 10
Compression:
Stored size: 615 Bytes
Contents
module Teleport class SimpleFormGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def add gem 'simple_form', '3.1.0.rc2' Bundler.with_clean_env do run "bundle install" end str = %q{ Install simple form (choose variant): 1. Basic 2. Bootstrap 3. Zurb } var = ask str, limited: ['1', '2', '3'] case var when '1' generate 'simple_form:install' when '2' generate 'simple_form:install --bootstrap' when '3' generate 'simple_form:install --foundation' end end end end
Version data entries
10 entries across 10 versions & 1 rubygems