updated readme.txt
This commit is contained in:
15
applications/cafe-scripted/scripts/ruby/barista.rb
Normal file
15
applications/cafe-scripted/scripts/ruby/barista.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
require 'java'
|
||||
|
||||
import org.springframework.integration.samples.cafe.Drink
|
||||
|
||||
orderItem = payload
|
||||
|
||||
puts "ruby: preparing #{orderItem} for order #{orderItem.order.number}"
|
||||
|
||||
sleep(timeToPrepare.to_f)
|
||||
|
||||
Drink.new(orderItem.getOrder().getNumber(), orderItem.getDrinkType(), orderItem.isIced(),
|
||||
orderItem.getShots())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user