Skip to content

Instantly share code, notes, and snippets.

@ezza
Created May 7, 2012 08:08
Show Gist options
  • Save ezza/2626598 to your computer and use it in GitHub Desktop.
Save ezza/2626598 to your computer and use it in GitHub Desktop.
manually kick off csd notifications in a dev db
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