Sha256: e777c386c4c317a84237bb6ddf63c5273345143aa13e97a8a3588e2e25ef84eb
Contents?: true
Size: 895 Bytes
Versions: 1
Compression:
Stored size: 895 Bytes
Contents
require 'rails' module Bootstrap module Generators class InstallGenerator < ::Rails::Generators::Base desc "Copy BootstrapGenerators default files" source_root File.expand_path('../templates', __FILE__) class_option :layout, :desc => "Bootstrap layout templates (hero, fluid or container-app)", :default => "hero", :type => :string class_option :template_engine def copy_lib directory "lib/templates/#{options[:template_engine]}" end def create_layout template "layouts/#{options[:layout]}.html.#{options[:template_engine]}", "app/views/layouts/application.html.#{options[:template_engine]}" copy_file "layouts/#{options[:layout]}.css.scss", "app/assets/stylesheets/bootstrap-generators.css.scss" copy_file "bootstrap-generators.js", "app/assets/javascripts/bootstrap-generators.js" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-generators-0.0.6 | lib/generators/bootstrap/install/install_generator.rb |