Class: FlashGrowlerGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/flash_growler/flash_growler_generator.rb', line 4

def self.source_root
  File.join( File.dirname(__FILE__), 'templates' )
end

Instance Method Details

#install_assetsObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/generators/flash_growler/flash_growler_generator.rb', line 8

def install_assets
  copy_file "guilded.flash_growler.js", "public/javascripts/guilded.flash_growler.js"
  copy_file "guilded.flash_growler.min.js", "public/javascripts/guilded.flash_growler.min.js"
  copy_file 'jquery-growler-0.1.js', 'public/javascripts/jquery/jquery-growler-0.1.js'
  copy_file 'jquery-growler-0.1.js', 'public/javascripts/jquery/jquery-growler-0.1.min.js'
  copy_file "default.css", "public/stylesheets/guilded/flash_growler/default.css"
  copy_file "alert.png", "public/stylesheets/guilded/flash_growler/default/alert.png"
  copy_file "bg.png", "public/stylesheets/guilded/flash_growler/default/bg.png"
  copy_file "error.png", "public/stylesheets/guilded/flash_growler/default/error.png"
  copy_file "info.png", "public/stylesheets/guilded/flash_growler/default/info.png"
end