Class: EcoRake::Lib::Files::Sftp

Inherits:
BaseTask show all
Defined in:
lib/eco-rake/lib/files/sftp.rb

Constant Summary collapse

FORWARD_RULES =
{
  enviro:           ->(enviro) { "-#{enviro}" },
  folder:           ->(folder) { "-local-folder #{folder}"},
  list:             '-list',
  get_last:         '-get-last',
  get:              '-get',
  archive:          '-archive',
  file_pattern:     ->(str) { "-file-pattern-const #{str}"},
  remote_subfolder: ->(sub) { "-remote-subfolder #{sub}"}
}.freeze

Constants inherited from EcoRake

VERSION

Instance Method Summary collapse

Instance Method Details

#task(*_args) ⇒ Object

attr_const :target_enviro, required: true option_reopen :enviro, default_lookup: :target_enviro



32
33
34
# File 'lib/eco-rake/lib/files/sftp.rb', line 32

def task(*_args)
  sh_exit_on_fail sftp_command
end