Sha256: 443df5cc3df5f83bf6d74a30584919e444a72ef3ae375e011ee0bb4d29be7225

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

module Siracha
  module Generators
    class BootstrapGenerator < Rails::Generators::AppBase
      hide!
      source_root File.expand_path("../../../templates/bootstrap", __FILE__)

      def add_gems
        gem 'bootstrap-sass', '~> 3.3.7'
      end

      def run_bundle_install
        bundle_command('install')
      end

      def css_template
        remove_file('app/assets/stylesheets/application.css')
        directory 'stylesheets', 'app/assets/stylesheets'
      end

      def js_configuration
        gsub_file('app/assets/javascripts/application.js', Regexp.escape(%q(//= require_tree .)), "\n//= require bootstrap-sprockets\n")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
siracha-0.1.1 lib/generators/css_framework.rb