Sha256: 8d15f6fea74c4e5114b5bec15cc2678c95823914040f4557a5d3518d990853d7
Contents?: true
Size: 383 Bytes
Versions: 32
Compression:
Stored size: 383 Bytes
Contents
require 'rest-client' module Sync class LogoWorker include Sidekiq::Worker sidekiq_options :retry => true, :queue => :sync def perform(url) if url.nil? Terminal.logo_url = nil else uploader = IconUploader.new uploader.download! "#{Terminal.config.host}/#{url}" Terminal.logo_url = uploader.url end end end end
Version data entries
32 entries across 32 versions & 1 rubygems