Sha256: ac20467d535fe1fbd87b29baa9c6df8340be922bdb1588c05e354404dccf5e57

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

module ScssBoilerplate
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
    
      def generate_scss_install
        template "config/compass.rb"
        copy_file "base.css.scss", "app/assets/stylesheets/base.css.scss"
        directory "base", "app/assets/stylesheets/base"
        # add import to manifest
        manifest = "app/assets/stylesheets/application.css.scss"
        create_file manifest unless File.exists? manifest
        append_to_file manifest, "\n@import \"base.css.scss\";"
      end
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scss-boilerplate-rails-0.1.0 lib/generators/scss_boilerplate/install/install_generator.rb