Class: RubygemsHerald::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration, Generators::Utils
Defined in:
lib/generators/rubygems_herald/views/views_generator.rb

Instance Method Summary collapse

Methods included from Generators::Utils

#ask_for, #output

Instance Method Details

#add_viewsObject

all public methods in here will be run in order



10
11
12
13
14
15
# File 'lib/generators/rubygems_herald/views/views_generator.rb', line 10

def add_views
  output "I'm copying the default views into app/views/gem_displays for you.", :magenta
  template "index.html.haml", "app/views/gem_displays/index.html.haml"
  template "show.html.haml", "app/views/gem_displays/show.html.haml"
  template "_widget.html.haml", "app/views/gem_displays/_widget.html.haml"
end