Indentation fix

This commit is contained in:
erwanlr
2013-04-13 22:37:16 +02:00
parent 4af7a19eb0
commit 5acaff356f

View File

@@ -3,26 +3,26 @@
class WpUsers < WpItems class WpUsers < WpItems
module Output module Output
# @param [ Hash ] options # @param [ Hash ] options
# @option options[ Boolean ] :show_password Output the password column # @option options[ Boolean ] :show_password Output the password column
# #
# @return [ void ] # @return [ void ]
def output(options = {}) def output(options = {})
rows = [] rows = []
headings = ['Id', 'Name'] headings = ['Id', 'Name']
headings << 'Password' if options[:show_password] headings << 'Password' if options[:show_password]
self.each do |wp_user| self.each do |wp_user|
row = [wp_user.id, wp_user.display_name] row = [wp_user.id, wp_user.display_name]
row << wp_user.password if options[:show_password] row << wp_user.password if options[:show_password]
rows << row rows << row
end
puts Terminal::Table.new(headings: headings,
rows: rows,
style: { margin_left: options[:margin_left] || '' })
end end
puts Terminal::Table.new(headings: headings,
rows: rows,
style: { margin_left: options[:margin_left] || '' })
end
end end
end end