Sha256: b3a807968832e827265aca637f7a957f3c4a3820f771a9342bfc018005ec3c9e

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

require_relative 'common'

Tochtli.logger.progname = 'CLIENT'

class ScreenerClient < Tochtli::BaseClient
  def create_screen(url, file_name)
    handler = SyncMessageHandler.new
    message = CreateScreenMessage.new(url: url, file: file_name)
    rabbit_client.publish message, handler: handler
    handler.wait!(20)
    puts "Done in #{handler.reply.time} seconds"
  end
end

ScreenerClient.new.create_screen(ARGV[0], ARGV[1])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tochtli-0.5.1 examples/01-screencap-service/client.rb