Sha256: ca9f7858a652e835b411af109168072446de4e766611ba353501e46efc345683
Contents?: true
Size: 332 Bytes
Versions: 1
Compression:
Stored size: 332 Bytes
Contents
if @username != 'admin' error 3, "You don't have permission to do that" end accounts = [] Dir.entries(Hubbard::ACCOUNTS_PATH).each do |account| next if account == '.' || account == '..' accounts << account end accounts.sort! if @options[:format] == :yaml puts YAML::dump(accounts) else accounts.each { |a| puts a } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hubbard-0.0.18 | commands/list-users.rb |