Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複の可能性: Ruby on Rails アプリからの FTPS (TLS/SSL)
皆さん、こんにちは。
Ruby (RoR) から ftps (Ruby on Rails の明示的な TLS/SSL 経由の ftp) ホストに接続するにはどうすればよいですか?
グーグルは答えを提供しませんでした。
解決策が見つかりました: lftputility を使用して、それを ruby から呼び出すことができます。
lftp
lftp -f file_with_command
「file_with_command」ファイルで指定する場所:
lftp -u %s,%s %s get '%s' exit
where%sは、ユーザー名、パスワード、ホスト名、それに応じて取得するファイルに置き換えられます。
%s