Permalink
Browse files

Tweak buildResult parameterisation

  • Loading branch information...
1 parent 5eb7bf9 commit f8a6e950b50886946ab11c49cfeefb554b912a1b @quimarche committed Oct 1, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 trudy.rb
View
@@ -63,12 +63,12 @@ def trudy_packet_head
[0x7F]
end
- def trudy_packet_message url
- trudy_packet_head + trudy_packet_message_block(url) + trudy_packet_foot
+ def trudy_packet_message status
+ trudy_packet_head + trudy_packet_message_block(status) + trudy_packet_foot
end
- def trudy_packet_message_block url
- trudy_obfuscated_message = trudy_obfuscate_message "ID 0\nMU #{ENV['TRUDY_HOST']}/#{url}"
+ def trudy_packet_message_block status
+ trudy_obfuscated_message = trudy_obfuscate_message "ID 0\nMU #{ENV['TRUDY_HOST']}/#{status}.mp3"
[0x0A, 0x00, 0x00, trudy_obfuscated_message.length] + trudy_obfuscated_message
end
@@ -89,7 +89,7 @@ def trudy_packet_reboot_block
end
post '/' do
- exchange.publish params[:buildResult] + '.mp3', :key => QUEUE_NAME
+ exchange.publish params[:buildResult], :key => QUEUE_NAME
status 201
end

0 comments on commit f8a6e95

Please sign in to comment.