Class: Eco::API::UseCases::Service::Sftp

Inherits:
Object
  • Object
show all
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

#logger

Instance Method Summary collapse

Methods included from Language::Delegation::DelegatingBlank

#blank?

Methods included from Language::AuxiliarLogger

#log

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

#optionsObject

Note:

overriding Sftp attr_reader



28
29
30
# File 'lib/eco/api/usecases/service/sftp.rb', line 28

def options
  subject.send(:options)
end

#sessionObject

Note:

overriding Sftp attr_reader



23
24
25
# File 'lib/eco/api/usecases/service/sftp.rb', line 23

def session
  subject.send(:session)
end