class Looks::Command::Pull
Public Instance Methods
arguments()
click to toggle source
# File lib/looks/command/pull.rb, line 9 def arguments [ '<address>', '<filename>' ] end
execute(args)
click to toggle source
Calls superclass method
Looks::Command::Base#execute
# File lib/looks/command/pull.rb, line 13 def execute(args) super address, filename = args begin File.open(filename, 'wb') do |file| file.write(Gravatar.get(address)) end rescue IOError, SystemCallError raise Error, "#{filename}: Cannot write file" end end