Class: CropImageRiffpad::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/cropimage_riffpad/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_imagesfileObject



28
29
30
31
32
# File 'lib/generators/cropimage_riffpad/install_generator.rb', line 28

def copy_imagesfile
  ["blank.gif", "fancy_close.png", "fancy_loading.png", "fancy_nav_left.png", "fancy_nav_right.png", "fancy_shadow_e.png", "fancy_shadow_e.png", "fancy_shadow_ne.png", "fancy_shadow_nw.png", "fancy_shadow_s.png", "fancy_shadow_se.png", "fancy_shadow_sw.png", "fancy_shadow_w.png", "fancy_title_left.png", "fancy_title_main.png", "fancy_title_over.png", "fancy_title_right.png", "fancybox-x.png", "fancybox-y.png", "fancybox.png", "Jcrop.gif"].each do |file|
    copy_file "../../../app/assets/images/#{file}", "app/assets/images/#{file}"
  end
end

#copy_jsfileObject



16
17
18
19
20
# File 'lib/generators/cropimage_riffpad/install_generator.rb', line 16

def copy_jsfile
  ["awesome_gem.js", "jquery.color.js", "jquery.easing-1.3.pack.js", "jquery.fancybox-1.3.4.js", "jquery.Jcrop.js", "jquery.mousewheel-3.0.4.pack.js"].each do |file|
    copy_file "../../../app/assets/javascripts/#{file}", "app/assets/javascripts/#{file}"
  end
end

#copy_stylefileObject



22
23
24
25
26
# File 'lib/generators/cropimage_riffpad/install_generator.rb', line 22

def copy_stylefile
  ["awesome_gem.css.scss", "jquery.fancybox-1.3.4.css", "jquery.Jcrop.css", "jquery.Jcrop.min.css", "style.css"].each do |file|
    copy_file "../../../app/assets/stylesheets/#{file}", "app/assets/stylesheets/#{file}"
  end
end