Class: Eco::API::Session::Config::S3Storage

Inherits:
BaseConfig show all
Defined in:
lib/eco/api/session/config/s3_storage.rb

Instance Attribute Summary

Attributes inherited from BaseConfig

#config

Attributes included from Language::AuxiliarLogger

#logger

Instance Method Summary collapse

Methods inherited from BaseConfig

#apis, attr_key, #clone, #file_manager, #initialize

Methods included from Language::AuxiliarLogger

#log

Methods inherited from Hash

#deep_merge, #deep_merge!

Constructor Details

This class inherits a constructor from Eco::API::Session::Config::BaseConfig

Instance Method Details

#configured?Boolean

Returns:

  • (Boolean)


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_directoriesObject



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_patternsObject



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_filesObject



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