Class: LeccaClient::FileHandler
- Inherits:
-
Object
- Object
- LeccaClient::FileHandler
- Defined in:
- lib/lecca_client/file_handler.rb
Instance Method Summary collapse
Instance Method Details
#remove(filepath) ⇒ Object
5 6 7 8 9 |
# 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 |