Class: Eco::API::Session::Config::SFTP
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
10
11
12
13
|
# File 'lib/eco/api/session/config/sftp.rb', line 10
def configured?
required = host && user && (key_file || password)
!!required
end
|
#enviro_subpath ⇒ Object
19
20
21
|
# File 'lib/eco/api/session/config/sftp.rb', line 19
def enviro_subpath
enviro_subpaths[config.active_enviro]
end
|
#enviro_subpaths ⇒ Object
15
16
17
|
# File 'lib/eco/api/session/config/sftp.rb', line 15
def enviro_subpaths
self['enviro_subpaths'] ||= {}
end
|
#remote_folder ⇒ Object
23
24
25
|
# File 'lib/eco/api/session/config/sftp.rb', line 23
def remote_folder
[base_path, enviro_subpath].compact.join("/")
end
|