Class: Fluent::GCS::ObjectCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/gcs/object_creator.rb

Direct Known Subclasses

GZipObjectCreator, TextObjectCreator

Instance Method Summary collapse

Instance Method Details

#content_encodingObject



22
23
24
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 22

def content_encoding
  nil
end

#content_typeObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 18

def content_type
  raise NotImplementedError
end

#create(chunk, &block) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 34

def create(chunk, &block)
  Tempfile.create("fluent-plugin-gcs") do |f|
    f.binmode
    f.sync = true
    write(chunk, f)
    block.call(f)
  end
end

#file_extensionObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 26

def file_extension
  raise NotImplementedError
end

#write(chunk, io) ⇒ Object

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 30

def write(chunk, io)
  raise NotImplementedError
end