From 52b5f1968f663b90ff56501e6463a821f6e97ed0 Mon Sep 17 00:00:00 2001 From: Jonathan Hsieh Date: Wed, 13 Feb 2013 18:14:18 +0000 Subject: [PATCH] HBASE-7353 [shell] have list and list_snapshot return jruby string arrays. git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-7290@1445789 13f79535-47bb-0310-9956-ffa450edef68 --- hbase-server/src/main/ruby/shell/commands/list.rb | 1 + hbase-server/src/main/ruby/shell/commands/list_snapshots.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/hbase-server/src/main/ruby/shell/commands/list.rb b/hbase-server/src/main/ruby/shell/commands/list.rb index c43e0c4a347..7801f530b9c 100644 --- a/hbase-server/src/main/ruby/shell/commands/list.rb +++ b/hbase-server/src/main/ruby/shell/commands/list.rb @@ -40,6 +40,7 @@ EOF end formatter.footer(now, list.size) + return list end end end diff --git a/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb b/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb index 6e4e88a6eef..95135185c2e 100644 --- a/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb +++ b/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb @@ -45,6 +45,7 @@ EOF end formatter.footer(now, list.size) + return list.map { |s| s.getName() } end end end