Skip to content
Browse files

Actually save some data

  • Loading branch information...
1 parent ddea446 commit 7a7fb9522dd94291e9e057f86bf6defc5fd9902e @stevendanna committed Aug 17, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 plugins/backup_restore.rb
View
2 plugins/backup_restore.rb
@@ -81,6 +81,8 @@ def restore_standard(component, klass)
files = Dir.glob(File.join(config[:backup_dir], component, "*.json"))
files.each do |f|
ui.msg "Updating #{component} from #{f}"
+ updated = loader.load_from(component, f)
+ updated.save
end
end

0 comments on commit 7a7fb95

Please sign in to comment.
Something went wrong with that request. Please try again.