Sha256: a4396d3e70064f53f9c32759b9d69a383470edda1bf4e7ed6183e6eaaaeb83a7

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

class Rafters::InstallGenerator < Rails::Generators::Base
  source_root File.expand_path("../templates", __FILE__)

  def create_initializer
    copy_file "initializer.rb", "config/initializers/rafters.rb"
  end

  def create_directories
    empty_directory "app/components"
  end

  def add_asset_requires
    say_status("[instructions]", "Please add //= require_components to your application.css and application.js files")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rafters-1.2.1 lib/generators/rafters/install/install_generator.rb
rafters-1.2.0 lib/generators/rafters/install/install_generator.rb
rafters-1.1.0 lib/generators/rafters/install/install_generator.rb
rafters-1.0.0 lib/generators/rafters/install/install_generator.rb
rafters-0.2.0 lib/generators/rafters/install/install_generator.rb
rafters-0.1.3 lib/generators/rafters/install/install_generator.rb
rafters-0.1.2 lib/generators/rafters/install/install_generator.rb
rafters-0.1.1 lib/generators/rafters/install/install_generator.rb