Sha256: 8a951e527be241c011fc1aaef99f202935e419de7e017b7edae895a4dd4c459c
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
# encoding: utf-8 require 'rails/generators' module Bones module Generators class InstallGenerator < Rails::Generators::Base #source_root File.expand_path('../templates', __FILE__) desc "This is the description" def add_assets prepend_to_file "app/assets/stylesheets/application.scss", "@import 'bones';\n" settings_file = File.join(File.dirname(__FILE__),"..","..","..","app","assets","stylesheets","bones","config","bones_config.scss") create_file "app/assets/stylesheets/bones_config.scss", File.read(settings_file) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bones-rails-0.1.0 | lib/bones/generators/install_generator.rb |