Sha256: 2b613ebb0447c092e562ead8a8cf4059a81336125a2bc00938c60f4470eeb380

Contents?: true

Size: 711 Bytes

Versions: 8

Compression:

Stored size: 711 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
        template "_theme.scss",  "app/assets/stylesheets/trestle/_theme.scss"
        template "_custom.scss", "app/assets/stylesheets/trestle/_custom.scss"

        template "custom.js",    "app/assets/javascripts/trestle/custom.js"
      end

      def create_directory
        empty_directory "app/admin"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trestle-0.9.7 lib/generators/trestle/install/install_generator.rb
trestle-0.9.6 lib/generators/trestle/install/install_generator.rb
trestle-0.9.5 lib/generators/trestle/install/install_generator.rb
trestle-0.9.4 lib/generators/trestle/install/install_generator.rb
trestle-0.9.3 lib/generators/trestle/install/install_generator.rb
trestle-0.9.2 lib/generators/trestle/install/install_generator.rb
trestle-0.9.1 lib/generators/trestle/install/install_generator.rb
trestle-0.9.0 lib/generators/trestle/install/install_generator.rb