Sha256: a894d5542d66f6bd3ec15a01712bb509afb50d857f61db7285efaef14d7b62b6

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

module Scales
  module Worker
    module Cache
      module Update
        include Helper::ContentTypes
        
        class << self
        
          def update(*paths, params)
            raise "Please define a format like this :format => :html" unless params.is_a?(Hash)
            format = params.delete(:format)
            raise "Unknown format :#{format}"                         if format.to_content_type.nil?
            paths.each{ |path| Thread.current[:post_process_queue] << { :format => format, :to => path }}
          end
        
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scales-worker-0.0.4 lib/scales-worker/cache/update.rb
scales-worker-0.0.1.beta.2 lib/scales-worker/cache/update.rb
scales-worker-0.0.1.beta.1 lib/scales-worker/cache/update.rb