Class: Fluent::GCS::ObjectCreator
- Inherits:
-
Object
- Object
- Fluent::GCS::ObjectCreator
show all
- Defined in:
- lib/fluent/plugin/gcs/object_creator.rb
Instance Method Summary
collapse
Instance Method Details
#content_encoding ⇒ Object
22
23
24
|
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 22
def content_encoding
nil
end
|
#content_type ⇒ Object
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_extension ⇒ Object
26
27
28
|
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 26
def file_extension
raise NotImplementedError
end
|
#write(chunk, io) ⇒ Object
30
31
32
|
# File 'lib/fluent/plugin/gcs/object_creator.rb', line 30
def write(chunk, io)
raise NotImplementedError
end
|