Sha256: cf87338815730bc3942edc41a0e82143497742416c266df5f9ea3e1ada17ae31

Contents?: true

Size: 590 Bytes

Versions: 11

Compression:

Stored size: 590 Bytes

Contents

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

  def generate_assets
    directory 'puffer', 'public/puffer'
  end

  def generate_migrations
    directory 'migrate', 'db/migrate'
  end

  def generate_controllers
    directory 'controllers', 'app/controllers/admin'
  end

  def generate_config
    copy_file 'puffer_pages.rb', 'config/initializers/puffer_pages.rb'
  end

  def generate_routes
    route "namespace :admin do\n    resources :pages\n    resources :layouts\n    resources :snippets\n  end"
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
puffer_pages-0.0.14 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.13 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.12 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.11 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.10 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.9 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.8 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.7 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.6 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.5 lib/generators/puffer_pages/install/install_generator.rb
puffer_pages-0.0.4 lib/generators/puffer_pages/install/install_generator.rb