Sha256: d33ed1a9fcb9de1bd66dfd6a8f0c92a05b633effcf8c1ec8ae3a764e1aa483e9

Contents?: true

Size: 724 Bytes

Versions: 10

Compression:

Stored size: 724 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 "_variables.scss", "app/assets/stylesheets/trestle/_variables.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

10 entries across 10 versions & 1 rubygems

Version Path
trestle-0.8.13 lib/generators/trestle/install/install_generator.rb
trestle-0.8.12 lib/generators/trestle/install/install_generator.rb
trestle-0.8.11 lib/generators/trestle/install/install_generator.rb
trestle-0.8.10 lib/generators/trestle/install/install_generator.rb
trestle-0.8.9 lib/generators/trestle/install/install_generator.rb
trestle-0.8.8 lib/generators/trestle/install/install_generator.rb
trestle-0.8.7 lib/generators/trestle/install/install_generator.rb
trestle-0.8.6 lib/generators/trestle/install/install_generator.rb
trestle-0.8.5 lib/generators/trestle/install/install_generator.rb
trestle-0.8.4 lib/generators/trestle/install/install_generator.rb