Created
May 7, 2012 08:08
-
-
Save ezza/2626598 to your computer and use it in GitHub Desktop.
manually kick off csd notifications in a dev db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CsdNotification.destroy_all | |
CsdTransaction.destroy_all | |
icp = Icp.held.last | |
CsdNotification.create_all_for_icp!(icp, {:change_datetime => Time.now}) | |
CsdNotification.process! | |
CsdTransaction.all.each do |transaction| | |
puts "\n\n\n" | |
puts transaction.transaction_type | |
puts "\n" | |
Nokogiri::XML::Builder.new do |doc| | |
transaction.generate_xml_with_builder(doc) | |
puts doc.to_xml.to_s | |
end | |
puts "\n\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment