Skip to content

Commit

Permalink
Fix install task error.
Browse files Browse the repository at this point in the history
  • Loading branch information
djcp committed Jun 6, 2008
1 parent 77e635c commit 6f601b0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/fckeditor_file_utils.rb
Expand Up @@ -37,13 +37,6 @@ def FckeditorFileUtils.backup_existing
FileUtils.mv source, dest
end

def FckeditorFileUtils.copy_configuration
# need to copy over the code if it doesn't already exist
config_file = File.join(RAILS_ROOT, '/vendor/extensions/fckeditor/public/javascripts/fckcustom.js')
dest = File.join(RAILS_ROOT, '/public/javascripts/fckcustom.js')
FileUtils.cp(config_file, dest) unless File.exist?(dest)
end

def FckeditorFileUtils.create_uploads_directory
uploads = File.join(RAILS_ROOT, '/public/uploads')
FileUtils.mkdir(uploads) unless File.exist?(uploads)
Expand All @@ -66,16 +59,12 @@ def FckeditorFileUtils.destroy_and_install
end
# now install fresh
install(true)
# copy over the config file (unless it exists)
copy_configuration
end

def FckeditorFileUtils.check_and_install
# check to see if already installed, if not install
unless File.exist?(FCKEDITOR_INSTALL_DIRECTORY)
install(false)
end
# copy over the config file (unless it exists)
copy_configuration
end
end

0 comments on commit 6f601b0

Please sign in to comment.