lib/acquia_toolbelt/cli/svn.rb in acquia_toolbelt-2.3.2 vs lib/acquia_toolbelt/cli/svn.rb in acquia_toolbelt-2.4.0

- old
+ new

@@ -10,15 +10,26 @@ subscription = options[:subscription] else subscription = AcquiaToolbelt::CLI::API.default_subscription end + ui.say + + rows = [] + headings = [ + 'ID', + 'Name' + ] + svn_users = AcquiaToolbelt::CLI::API.request "sites/#{subscription}/svnusers" svn_users.each do |user| - ui.say - ui.say "> ID: #{user['id']}" - ui.say "> Name: #{user['username']}" + row_data = [] + row_data << user['id'] + row_data << user['username'] + rows << row_data end + + ui.output_table('', headings, rows) end # Public: Create a new SVN user. # # Returns a status message.