Permalink
Browse files

Brings up other constants to a higher level

  • Loading branch information...
1 parent f9e0f48 commit 9baf895455cb3979ec88b5649a72596593aefbee @alindeman alindeman committed Feb 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/hbase-rb.rb
View
@@ -6,5 +6,9 @@
# Try to make the crazy nesting that Thrift generates a little less painful
module Hbase
Client = ::Apache::Hadoop::Hbase::Thrift::Hbase::Client
+
+ Apache::Hadoop::Hbase::Thrift.constants.each do |constant|
+ const_set(constant, Apache::Hadoop::Hbase::Thrift.const_get(constant))
+ end
end
HBase = Hbase

0 comments on commit 9baf895

Please sign in to comment.