Sha256: 0a330b2ce0300142699ec78fe0b90ea71fda5ad5739aa49bc6362ba68e091c8b
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
module Trestle module Generators class InstallGenerator < ::Rails::Generators::Base desc "Installs Trestle and creates files for configuration and asset customization" source_root File.expand_path("../templates", __FILE__) def create_initializer template "trestle.rb.erb", "config/initializers/trestle.rb" end def create_assets if defined?(Sass) || defined?(SassC) template "_custom.scss", "app/assets/stylesheets/trestle/_custom.scss" template "_theme.scss", "app/assets/stylesheets/trestle/_theme.scss" else template "_custom.css", "app/assets/stylesheets/trestle/_custom.css" end template "custom.js", "app/assets/javascripts/trestle/custom.js" end def create_directory empty_directory "app/admin" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.9.8 | lib/generators/trestle/install/install_generator.rb |