Module: Kithe

Defined in:
lib/kithe.rb,
lib/kithe/engine.rb,
lib/kithe/version.rb,
app/jobs/kithe/job.rb,
app/indexing/kithe/indexer.rb,
app/models/kithe/derivative.rb,
app/indexing/kithe/indexable.rb,
app/indexing/kithe/solr_util.rb,
app/models/kithe/config_base.rb,
app/jobs/kithe/asset_delete_job.rb,
app/models/kithe/model_contains.rb,
app/jobs/kithe/asset_promote_job.rb,
app/uploaders/kithe/asset_uploader.rb,
app/jobs/kithe/create_derivatives_job.rb,
app/indexing/kithe/indexer/obj_extract.rb,
app/uploaders/kithe/derivative_uploader.rb,
app/indexing/kithe/indexable/thread_settings.rb,
app/indexing/kithe/indexable/record_index_updater.rb,
app/derivative_transformers/kithe/ffmpeg_transformer.rb,
app/derivative_transformers/kithe/vips_cli_image_to_jpeg.rb

Defined Under Namespace

Modules: FormHelper, Indexable, SolrUtil Classes: Asset, AssetDeleteJob, AssetPromoteJob, AssetUploader, Collection, ConfigBase, CreateDerivativesJob, Derivative, DerivativeUploader, Engine, FfmpegTransformer, FormBuilder, Indexer, Model, ModelContains, Parameters, RepeatableInputGenerator, VipsCliImageToJpeg, Work

Constant Summary collapse

STANDARD_PROGRESS_BAR_FORMAT =

for ruby-progressbar

"%a %t: |%B| %R/s %c/%u %p%% %e"
VERSION =
'0.2.0'
Job =

Just a superclass for all kithe jobs, to make it easier to do track them or put them all in a certain queue or whatever. Will inherit from local app ApplicationJob if it exists.

Class.new(app_superclass)

Class Method Summary collapse

Class Method Details

.railtie_namespaceObject

We don’t want an isolated engine, but we do want this, part of what isolated engines do. Will make generators use namespace scope, among other things.



15
16
17
# File 'lib/kithe.rb', line 15

def self.railtie_namespace
  Kithe::Engine
end

.table_name_prefixObject

ActiveRecord will automatically pick this up for all our models. We don’t want an isolated engine, but we do want this, part of what isolated engines do.



9
10
11
# File 'lib/kithe.rb', line 9

def self.table_name_prefix
  'kithe_'
end