Sha256: 3c742646e15ef1b0533ab15a685822bb6fe083d0573867fd0983d4f353658cf1
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
module Initial class SimpleFormGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def add gem 'simple_form' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teleporter-0.0.33 | lib/generators/initial/simple_form.rb |