class Looks::Command::Rm
Public Instance Methods
arguments()
click to toggle source
# File lib/looks/command/rm.rb, line 8 def arguments [ '<id>' ] end
execute(args)
click to toggle source
Calls superclass method
Looks::Command::AccountManagement#execute
# File lib/looks/command/rm.rb, line 12 def execute(args) super id = args.first begin Gravatar::Account.new(config).delete_image(id) rescue Gravatar::IncorrectMethodParameterError raise Error, "#{id}: Unknown identifier" end end