lib/troph/comms/bunny.rb
# publish the message after encrypting it and packing it
publish the message after encrypting it and packing it
publish the message after encrypting it and packing it
def publish(exchange, msg, opts={})
      package = Package.new(opts.delete(:package))      
      package.payload = msg
      exchange.publish(package.dump, opts)
    end
def publish ( exchange , msg , opts = { } ) package = Package . new ( opts . delete ( :package ) ) package . payload = msg exchange . publish ( package . dump , opts ) end
publish the message after encrypting it and packing it
publish the message after encrypting it and packing it
exchange
<not_specific>
msg
<not_specific>
opts
<not_specific>