Sha256: 61e87a2e33cd382f07b9b0ef6df7aeefd6445e9cf62c1cf62054832557f213c8

Contents?: true

Size: 823 Bytes

Versions: 2

Compression:

Stored size: 823 Bytes

Contents

# Copyright © 2012 The Pennsylvania State University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

class CharacterizeJob
  @queue = :characterize

  def self.perform(generic_file_id)
    generic_file = GenericFile.find(generic_file_id, :cast => true)
    generic_file.characterize
    generic_file.create_thumbnail
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sufia-0.0.1.pre2 app/models/characterize_job.rb
sufia-0.0.1.pre1 app/models/characterize_job.rb