Class: Hydra::Derivatives::ActiveEncodeDerivatives
- Defined in:
- lib/hydra/derivatives/runners/active_encode_derivatives.rb
Class Method Summary collapse
- .create(object_or_filename, options) ⇒ Object
-
.output_file_service ⇒ Object
Use the output service configured for this class or default to the external file service.
- .processor_class ⇒ Object
-
.source_file_service ⇒ Object
Use the source service configured for this class or default to the remote file service.
Methods inherited from Runner
source_file, transform_directives
Class Method Details
.create(object_or_filename, options) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/hydra/derivatives/runners/active_encode_derivatives.rb', line 9 def self.create(object_or_filename, ) processor_opts = () source_file(object_or_filename, ) do |file_name| transform_directives(.delete(:outputs)).each do |instructions| processor = processor_class.new(file_name, instructions, processor_opts) processor.process end end end |
.output_file_service ⇒ Object
Use the output service configured for this class or default to the external file service
25 26 27 |
# File 'lib/hydra/derivatives/runners/active_encode_derivatives.rb', line 25 def self.output_file_service @output_file_service || PersistExternalFileOutputFileService end |
.processor_class ⇒ Object
29 30 31 |
# File 'lib/hydra/derivatives/runners/active_encode_derivatives.rb', line 29 def self.processor_class Processors::ActiveEncode end |
.source_file_service ⇒ Object
Use the source service configured for this class or default to the remote file service
20 21 22 |
# File 'lib/hydra/derivatives/runners/active_encode_derivatives.rb', line 20 def self.source_file_service @source_file_service || RemoteSourceFile end |