Permalink
Browse files

symbolize_keys a rails thing, not ruby

  • Loading branch information...
1 parent e0f915e commit 62a6cc84cc047e25bf57f7bb9ab0d9602ed6b4af Ethan Waldo committed Apr 1, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/testjour/rsync.rb
View
@@ -51,10 +51,10 @@ def successful?
def command
excludes = ""
if File.exists?(file = "config/testjour.yml")
- config = YAML.load_file(file).symbolize_keys
- excludes = config[:exclude].split(",").map { |exclude|
+ config = YAML.load_file(file)
+ excludes = config["exclude"].split(",").map { |exclude|
" --exclude=#{exclude}"
- }.join(" ") unless config[:exclude].blank?
+ }.join(" ") unless config["exclude"].blank?
end
"rsync -az -e \"ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\" --delete#{excludes} --exclude=.git --exclude=*.log --exclude=*.pid #{@source_uri}/ #{destination_dir}"
end

0 comments on commit 62a6cc8

Please sign in to comment.