Class: GeditorUtils

Inherits:
Object
  • Object
show all
Defined in:
lib/geditor.rb

Class Method Summary collapse

Class Method Details

.copy_filesObject



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.expand_path('../stylesheets/geditor.css', __FILE__)
  FileUtils.mkdir_p dir unless File.exists? dir
  FileUtils.cp(file, dir)
      
  dir = "app/assets/images"
  folder = File.expand_path('../images/geditor/', __FILE__)    
  FileUtils.mkdir_p dir unless File.exists? dir
  FileUtils.cp_r(folder, dir)
rescue
end