Sha256: 8a51ef197b394feac003fdfd741dc958501879d207de760daf8d7373122da399

Contents?: true

Size: 298 Bytes

Versions: 15

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class LocalFileService
    # @param [String] file_name path to the file
    # @param [Hash] _options
    # @yield [File] opens the file and yields it to the block
    def self.call(file_name, _options)
      yield File.open(file_name)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/services/hyrax/local_file_service.rb
hyrax-3.5.0 app/services/hyrax/local_file_service.rb
hyrax-3.4.2 app/services/hyrax/local_file_service.rb
hyrax-4.0.0.beta1 app/services/hyrax/local_file_service.rb
hyrax-3.4.1 app/services/hyrax/local_file_service.rb
hyrax-3.4.0 app/services/hyrax/local_file_service.rb
hyrax-3.3.0 app/services/hyrax/local_file_service.rb
hyrax-3.2.0 app/services/hyrax/local_file_service.rb
hyrax-3.1.0 app/services/hyrax/local_file_service.rb
hyrax-3.0.2 app/services/hyrax/local_file_service.rb
hyrax-3.0.1 app/services/hyrax/local_file_service.rb
hyrax-3.0.0 app/services/hyrax/local_file_service.rb
hyrax-3.0.0.pre.rc4 app/services/hyrax/local_file_service.rb
hyrax-3.0.0.pre.rc3 app/services/hyrax/local_file_service.rb
hyrax-3.0.0.pre.rc2 app/services/hyrax/local_file_service.rb