Sha256: 612ec919bd69507ed539008920540fb95d4cbcaafea093f3e184f4f00a3d6f08
Contents?: true
Size: 556 Bytes
Versions: 5
Compression:
Stored size: 556 Bytes
Contents
desc 'Show detailed user info' arg_name 'user-id...' command [:show] do |c| c.action do |global_options,options,args| users = User.find(args) rows = [] users.each do |s| s.reload # to get ssh_key o = s.to_row o[:ssh_key] = s.ssh_key.to_s.strip o[:accounts] = s.accounts.collect { |a| a.id }.join(", ") rows << o end table_opts = global_options.merge({ :vertical => true, :fields => [:id, :name, :email_address, :accounts, :ssh_key ] }) render_table(rows, table_opts) end end
Version data entries
5 entries across 5 versions & 1 rubygems