Class: Eco::API::UseCases::Service::Sftp
- Includes:
- Lib::Files::Sftp, Language::Delegation::DelegatingBlank, Language::Delegation::DelegatingMissingConst
- Defined in:
- lib/eco/api/usecases/service/sftp.rb
Overview
Class that pulls configuration from the subject (i.e. remote_folder)
Constant Summary collapse
- DELEGATED_BLANK_PROPERTIES =
%i[ remote_subfolder local_folder sftp_group_id ].freeze
Instance Attribute Summary
Attributes included from Language::AuxiliarLogger
Instance Method Summary collapse
-
#initialize(subject) ⇒ Sftp
constructor
A new instance of Sftp.
- #options ⇒ Object
- #session ⇒ Object
Methods included from Language::Delegation::DelegatingBlank
Methods included from Language::AuxiliarLogger
Constructor Details
#initialize(subject) ⇒ Sftp
Returns a new instance of Sftp.
18 19 20 |
# File 'lib/eco/api/usecases/service/sftp.rb', line 18 def initialize(subject) @subject = subject end |
Instance Method Details
#options ⇒ Object
Note:
overriding Sftp attr_reader
28 29 30 |
# File 'lib/eco/api/usecases/service/sftp.rb', line 28 def subject.send(:options) end |
#session ⇒ Object
Note:
overriding Sftp attr_reader
23 24 25 |
# File 'lib/eco/api/usecases/service/sftp.rb', line 23 def session subject.send(:session) end |