Skip to content

Commit

Permalink
fix `gem_original_require': no such file to load -- FileUtils (LoadEr…
Browse files Browse the repository at this point in the history
…ror)

when use command "cap database:move:to_local" or "cap shared:uploads:to_local" ...
  • Loading branch information
quiche committed Apr 5, 2012
1 parent 61bcc47 commit ae55998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/symfony1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def load_database_config(data, env)
end
end

require "FileUtils"
require "fileutils"
FileUtils.mkdir_p("backups")
get file, "backups/#{filename}"
begin
Expand All @@ -475,7 +475,7 @@ def load_database_config(data, env)
config = load_database_config IO.read('config/databases.yml'), symfony_env_local
sqlfile = "#{application}_dump.sql"

require "FileUtils"
require "fileutils"
FileUtils::mkdir_p("backups")
case config['type']
when 'mysql'
Expand Down

0 comments on commit ae55998

Please sign in to comment.