Class: GFancybox::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/g_fancybox/install/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



10
11
12
# File 'lib/generators/g_fancybox/install/install_generator.rb', line 10

def self.banner
  "rails generate g_fancybox:install [options]"
end

.source_rootObject



6
7
8
# File 'lib/generators/g_fancybox/install/install_generator.rb', line 6

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

Instance Method Details

#copy_filesObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/generators/g_fancybox/install/install_generator.rb', line 14

def copy_files
  {
    "javascripts/guilded.fancybox.js"                             => "public/javascripts/guilded.fancybox.js",
    "javascripts/guilded.fancybox.min.js"                         => "public/javascripts/guilded.fancybox.min.js",
    "javascripts/jquery/jquery-easing-1.3.pack.js"                => "public/javascripts/jquery/jquery-easing-1.3.pack.js",
    "javascripts/jquery/jquery-fancybox-1.3.1.js"                 => "public/javascripts/jquery/jquery-fancybox-1.3.1.js",
    "javascripts/jquery/jquery-fancybox-1.3.1.pack.js"            => "public/javascripts/jquery/jquery-fancybox-1.3.1.pack.js",
    "javascripts/jquery/jquery-mousewheel-3.0.2.pack.js"          => "public/javascripts/jquery/jquery-mousewheel-3.0.2.pack.js",
    "stylesheets/guilded/fancybox/default.css"                    => "public/stylesheets/guilded/fancybox/default.css",
    "stylesheets/guilded/fancybox/default/blank.gif"              => "public/stylesheets/guilded/fancybox/default/blank.gif",
    "stylesheets/guilded/fancybox/default/fancy_close.png"        => "public/stylesheets/guilded/fancybox/default/fancy_close.png",
    "stylesheets/guilded/fancybox/default/fancy_loading.png"      => "public/stylesheets/guilded/fancybox/default/fancy_loading.png",
    "stylesheets/guilded/fancybox/default/fancy_nav_left.png"     => "public/stylesheets/guilded/fancybox/default/fancy_nav_left.png",
    "stylesheets/guilded/fancybox/default/fancy_nav_right.png"    => "public/stylesheets/guilded/fancybox/default/fancy_nav_right.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_e.png"     => "public/stylesheets/guilded/fancybox/default/fancy_shadow_e.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_n.png"     => "public/stylesheets/guilded/fancybox/default/fancy_shadow_n.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_ne.png"    => "public/stylesheets/guilded/fancybox/default/fancy_shadow_ne.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_nw.png"    => "public/stylesheets/guilded/fancybox/default/fancy_shadow_nw.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_s.png"     => "public/stylesheets/guilded/fancybox/default/fancy_shadow_s.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_se.png"    => "public/stylesheets/guilded/fancybox/default/fancy_shadow_se.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_sw.png"    => "public/stylesheets/guilded/fancybox/default/fancy_shadow_sw.png",
    "stylesheets/guilded/fancybox/default/fancy_shadow_w.png"     => "public/stylesheets/guilded/fancybox/default/fancy_shadow_w.png",
    "stylesheets/guilded/fancybox/default/fancy_title_left.png"   => "public/stylesheets/guilded/fancybox/default/fancy_title_left.png",
    "stylesheets/guilded/fancybox/default/fancy_title_main.png"   => "public/stylesheets/guilded/fancybox/default/fancy_title_main.png",
    "stylesheets/guilded/fancybox/default/fancy_title_over.png"   => "public/stylesheets/guilded/fancybox/default/fancy_title_over.png",
    "stylesheets/guilded/fancybox/default/fancy_title_right.png"  => "public/stylesheets/guilded/fancybox/default/fancy_title_right.png",
    "stylesheets/guilded/fancybox/default/fancybox-x.png"         => "public/stylesheets/guilded/fancybox/default/fancybox-x.png",
    "stylesheets/guilded/fancybox/default/fancybox-y.png"         => "public/stylesheets/guilded/fancybox/default/fancybox-y.png",
    "stylesheets/guilded/fancybox/default/fancybox.png"           => "public/stylesheets/guilded/fancybox/default/fancybox.png"
  }.each do |src, dest|
    template src, dest
  end
  # empty_directory 'config/initializers'
end