Sha256: d9e04c838065c0f6179a13705456799c3417de430e3eef6226b007f79c3c3b59

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'rails/generators'

class BrowseEverything::InstallGenerator < Rails::Generators::Base
  class_option :'skip-assets', type: :boolean, default: false, desc: "Skip generating javascript and css assets into the application"

  desc """
    This generator installs the browse everything configuration and assets into your application
       """

  source_root File.expand_path('../templates', __FILE__)

  def inject_config
    generate 'browse_everything:config'
  end

  def inject_assets
    generate 'browse_everything:assets' unless options[:'skip-assets']
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browse-everything-0.10.5 lib/generators/browse_everything/install_generator.rb
browse-everything-0.10.4 lib/generators/browse_everything/install_generator.rb
browse-everything-0.10.3 lib/generators/browse_everything/install_generator.rb
browse-everything-0.10.2 lib/generators/browse_everything/install_generator.rb
browse-everything-0.10.1 lib/generators/browse_everything/install_generator.rb
browse-everything-0.10.0 lib/generators/browse_everything/install_generator.rb