Sha256: 209e0a2661d40cee453c349322eb73a4ac0910673c8d56128d00e6e13cdf86e4

Contents?: true

Size: 268 Bytes

Versions: 58

Compression:

Stored size: 268 Bytes

Contents

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

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/services/hyrax/local_file_service.rb
hyrax-2.9.5 app/services/hyrax/local_file_service.rb
hyrax-2.9.4 app/services/hyrax/local_file_service.rb
hyrax-2.9.3 app/services/hyrax/local_file_service.rb
hyrax-2.9.2 app/services/hyrax/local_file_service.rb
hyrax-2.9.1 app/services/hyrax/local_file_service.rb
hyrax-2.9.0 app/services/hyrax/local_file_service.rb
hyrax-2.8.0 app/services/hyrax/local_file_service.rb
hyrax-2.7.2 app/services/hyrax/local_file_service.rb
hyrax-2.7.1 app/services/hyrax/local_file_service.rb
hyrax-2.7.0 app/services/hyrax/local_file_service.rb
hyrax-2.6.0 app/services/hyrax/local_file_service.rb
hyrax-3.0.0.pre.rc1 app/services/hyrax/local_file_service.rb
hyrax-3.0.0.pre.beta3 app/services/hyrax/local_file_service.rb
hyrax-2.5.1 app/services/hyrax/local_file_service.rb
hyrax-2.5.0 app/services/hyrax/local_file_service.rb
hyrax-3.0.0.pre.beta2 app/services/hyrax/local_file_service.rb
hyrax-2.4.1 app/services/hyrax/local_file_service.rb
hyrax-3.0.0.pre.beta1 app/services/hyrax/local_file_service.rb
hyrax-2.4.0 app/services/hyrax/local_file_service.rb