Skip to content

Instantly share code, notes, and snippets.

@sbellity
Created June 25, 2010 12:40
Show Gist options
  • Save sbellity/452797 to your computer and use it in GitHub Desktop.
Save sbellity/452797 to your computer and use it in GitHub Desktop.
$: << File.join(RAILS_ROOT, "lib/bm_master/gen-rb")
require "master"
require "thrift"
require "thrift/transport/http_client_transport"
transport = Thrift::HTTPClientTransport.new("http://10.101.0.97:3000/bm_service")
protocol = Thrift::BinaryProtocol.new(transport)
BmClient = BmMaster::Master::Client.new(protocol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment