Class: GeditorUtils
- Inherits:
-
Object
- Object
- GeditorUtils
- Defined in:
- lib/geditor.rb
Class Method Summary collapse
Class Method Details
.copy_files ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/geditor.rb', line 9 def self.copy_files require "fileutils" dir = "app/assets/stylesheets" file = File.('../stylesheets/geditor.css', __FILE__) FileUtils.mkdir_p dir unless File.exists? dir FileUtils.cp(file, dir) dir = "app/assets/images" folder = File.('../images/geditor/', __FILE__) FileUtils.mkdir_p dir unless File.exists? dir FileUtils.cp_r(folder, dir) rescue end |