Class: Eco::API::Session::Config::S3Storage
Instance Attribute Summary
Attributes inherited from BaseConfig
#config
#logger
Instance Method Summary
collapse
Methods inherited from BaseConfig
#apis, attr_key, #clone, #file_manager, #initialize
#log
Methods inherited from Hash
#deep_merge, #deep_merge!
Instance Method Details
9
10
11
12
|
# File 'lib/eco/api/session/config/s3_storage.rb', line 9
def configured?
required = bucket_name && prefix && access_key_id && secret_access_key && region
!!required
end
|
#target_directories ⇒ Object
26
27
28
|
# File 'lib/eco/api/session/config/s3_storage.rb', line 26
def target_directories
self["target_directories"]
end
|
#target_directories=(value) ⇒ Object
22
23
24
|
# File 'lib/eco/api/session/config/s3_storage.rb', line 22
def target_directories=(value)
self["target_directories"] = [value].flatten
end
|
#target_file_patterns ⇒ Object
34
35
36
|
# File 'lib/eco/api/session/config/s3_storage.rb', line 34
def target_file_patterns
self["target_file_patterns"]
end
|
#target_file_patterns=(value) ⇒ Object
30
31
32
|
# File 'lib/eco/api/session/config/s3_storage.rb', line 30
def target_file_patterns=(value)
self["target_file_patterns"] = [value].flatten
end
|
#target_files ⇒ Object
18
19
20
|
# File 'lib/eco/api/session/config/s3_storage.rb', line 18
def target_files
self["target_files"]
end
|
#target_files=(value) ⇒ Object
14
15
16
|
# File 'lib/eco/api/session/config/s3_storage.rb', line 14
def target_files=(value)
self["target_files"] = [value].flatten
end
|