Class: Fluent::GCS::ObjectCreator

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

Instance Method Summary collapse

Instance Method Details

#content_encodingObject



36
37
38
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 36

def content_encoding
  nil
end

#content_typeObject

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 32

def content_type
  raise NotImplementedError
end

#create(chunk, &block) ⇒ Object



48
49
50
51
52
53
54
55
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 48

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)


40
41
42
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 40

def file_extension
  raise NotImplementedError
end

#write(chunk, io) ⇒ Object

Raises:

  • (NotImplementedError)


44
45
46
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 44

def write(chunk, io)
  raise NotImplementedError
end