Sha256: 6997cb1db3b6bae59f9ff71a86a8b4ff91953a5b1ab2b532d2735d82d1685c9f
Contents?: true
Size: 793 Bytes
Versions: 12
Compression:
Stored size: 793 Bytes
Contents
module Dreamy::Command class Users < Base def index users = @account.users if users.empty? display "No users on this account" else user_table = table do |t| t.headings = 'Name', 'Account Type', 'Server', 'Disk used (MB)', 'Quota (MB)' users.each { |u| t << [u.gecos, u.type, u.home, u.disk_used_mb, u.quota_mb] } end display user_table end end def pw users = @account.users(passwords=true) if users.empty? display "No users on this account" else user_table = table do |t| t.headings = 'UserName', 'Password' users.each { |u| t << [u.username, u.password] } end display user_table end end end end
Version data entries
12 entries across 12 versions & 3 rubygems