Sha256: 8b8c0e03ddc3de38148ef0e2b0f3a512e2a33eec412bd6578d1c56b3c4c5dcaf
Contents?: true
Size: 625 Bytes
Versions: 4
Compression:
Stored size: 625 Bytes
Contents
module Brightbox command [:users] do |cmd| cmd.desc "Show detailed user info" cmd.arg_name "user-id..." cmd.command [:show] do |c| c.action do |global_options, options, args| if args.empty? raise "You must specify the users you want to show" end users = User.find_or_call(args) do |id| warn "Couldn't find user #{id}" end table_opts = global_options.merge({ :vertical => true, :fields => [:id, :name, :email_address, :accounts, :ssh_key ] }) render_table(users, table_opts) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems