You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by jm...@apache.org on 2013/02/13 19:14:19 UTC

svn commit: r1445789 - in /hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands: list.rb list_snapshots.rb

Author: jmhsieh
Date: Wed Feb 13 18:14:18 2013
New Revision: 1445789

URL: http://svn.apache.org/r1445789
Log:
HBASE-7353 [shell] have list and list_snapshot return jruby string arrays.


Modified:
    hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list.rb
    hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb

Modified: hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list.rb
URL: http://svn.apache.org/viewvc/hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list.rb?rev=1445789&r1=1445788&r2=1445789&view=diff
==============================================================================
--- hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list.rb (original)
+++ hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list.rb Wed Feb 13 18:14:18 2013
@@ -40,6 +40,7 @@ EOF
         end
 
         formatter.footer(now, list.size)
+        return list
       end
     end
   end

Modified: hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb
URL: http://svn.apache.org/viewvc/hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb?rev=1445789&r1=1445788&r2=1445789&view=diff
==============================================================================
--- hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb (original)
+++ hbase/branches/hbase-7290/hbase-server/src/main/ruby/shell/commands/list_snapshots.rb Wed Feb 13 18:14:18 2013
@@ -45,6 +45,7 @@ EOF
         end
 
         formatter.footer(now, list.size)
+        return list.map { |s| s.getName() }
       end
     end
   end