Sha256: 22d78acf0efc7ba8204b70cc003efa6975997278a3a6b5f21f7d483a166b8d90

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

module Senders
  class Stdout
    def self.send_messages(messages)
      messages.each do |message|
        puts message
      end
    end

    def self.send_error(error, screenshot: nil)
      puts error
      return if screenshot.nil?

      filename = "fuck_facebook_error_#{Time.now.iso8601}.png"
      File.write(filename, screenshot)
      puts "Screenshot of error page saved as #{filename}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fuck_facebook-0.5.4 src/senders/stdout.rb
fuck_facebook-0.5.3 src/senders/stdout.rb
fuck_facebook-0.5.2 src/senders/stdout.rb
fuck_facebook-0.5.1 src/senders/stdout.rb
fuck_facebook-0.5.0 src/senders/stdout.rb