Class: Mist::SetupGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/mist/setup_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



4
5
6
# File 'lib/generators/mist/setup_generator.rb', line 4

def copy_views
  copy_file 'app/views/layouts/mist/posts.html.erb'
end

#create_initializerObject



13
14
15
# File 'lib/generators/mist/setup_generator.rb', line 13

def create_initializer
  copy_file template_path('initializer.rb'), 'config/initializers/mist.rb'
end

#install_assetsObject



8
9
10
11
# File 'lib/generators/mist/setup_generator.rb', line 8

def install_assets
  copy_file template_path('mist.js.coffee'), 'app/assets/javascripts/mist.js.coffee'
  copy_file template_path('mist.css.scss'),  'app/assets/stylesheets/mist.css.scss'
end