Sha256: e0b93af3341734df06172bacb856a20bd092dfd4fe8423bb6eda4cefa83ddadb

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 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__)

      def copy_simple_form_inputs
        directory 'app'
      end

      def copy_simple_form_config
        directory 'config'
      end

      def copy_lib
        directory 'lib'
      end

      def create_layout
        template 'application.html.erb', 'app/views/layouts/application.html.erb'
        copy_file 'bootstrap-generators.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.3 lib/generators/bootstrap/install/install_generator.rb