class LeccaClient::FileHandler

Public Instance Methods

remove(filepath) click to toggle source
# File lib/lecca_client/file_handler.rb, line 5
def remove(filepath)
  Net::SFTP.start(config[:host], config[:user], password: config[:pass]) do |sftp|
    sftp.remove!(filepath)
  end
end

Private Instance Methods

config() click to toggle source
# File lib/lecca_client/file_handler.rb, line 13
def config
  @config ||= LeccaClient.config.ftp
end