class ETFC::CLI
Public Instance Methods
collage(result = 'collage.jpg')
click to toggle source
# File lib/etfc/cli.rb, line 22 def collage(result = 'collage.jpg') ETFC::Runner.run(options[:keywords], result) rescue SocketError, Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError, Errno::ECONNREFUSED puts 'There was a problem with the network connection. Please check ' \ 'your network and try again.' exit 1 end