Sha256: d7c6aec8f0eaec801b0025137d342a9895e9348ea0c6b0c80a77ab1349965766
Contents?: true
Size: 730 Bytes
Versions: 1
Compression:
Stored size: 730 Bytes
Contents
#!/usr/bin/env ruby $: << File.dirname(__FILE__) + "/../../../target/gen-rb" require "rubygems" require "bundler/setup" require "thrift" require "thrift_client" require "bird_name_service" require "irb" class BirdNameClient < ThriftClient DEFAULTS = { :transport_wrapper => Thrift::FramedTransport } def initialize(servers = nil, options = {}) if servers.nil? or servers.empty? STDERR.puts "No servers specified, using 127.0.0.1:9999" servers = ['127.0.0.1:9999'] else servers = Array(servers) end super(BirdName::BirdNameService::Client, servers, DEFAULTS.merge(options)) end end puts "Hint: the client is in the variable `$client`" $client = BirdNameClient.new ARGV.shift IRB.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scala-bootstrapper-0.7.2 | lib/template/src/scripts/console.erb |