class Tapjoy::LDAP::Key::Show
Show
all of a user's keys
Public Instance Methods
show()
click to toggle source
# File lib/tapjoy/ldap/key/show.rb, line 6 def show username = opts[:username] keys = Tapjoy::LDAP::Key.get_keys_from_ldap[username] puts "No keys found for #{opts[:username]}" if keys.nil? puts keys end
Private Instance Methods
opts()
click to toggle source
# File lib/tapjoy/ldap/key/show.rb, line 14 def opts @opts ||= Optimist.options do # Set help message usage 'key show [options]' synopsis "\nThis command is for showing a specific user's SSH keys" opt :username, 'Specify username', type: :string, required: true end end