This file contains hidden or 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
| source :rubygems | |
| gem 'riak-client' |
This file contains hidden or 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
| task :default do |t| | |
| require './ruby/rest_service' | |
| RestService.run! | |
| end | |
| task :client, :cmd do |t, args| | |
| classpath = '.' | |
| Dir.glob('lib/*.jar').each {|file| classpath += ":#{file}" } | |
| puts `scala -cp #{classpath} RestClient.scala #{args[:cmd]}` | |
| end |
This file contains hidden or 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
| import java.net.Socket | |
| import java.net.ServerSocket | |
| import java.io.PrintWriter | |
| import java.io.BufferedReader | |
| import java.io.InputStreamReader | |
| s = ServerSocket.new 9001 | |
| puts "Listening on port 9001...IT'S OVER 9000!!1!" | |
| while true |