switchtower-0.10.0 が出てましたね

新年早々1月2日にswitchtowerがバージョンアップしていたみたいです。
gemにももう出てますね。

 # gem update --incude-dependencies switchtower

で行けます。以前のエントリでふれた:update_currentタスクの追加、:checkout変数の追加もこのリリースに含まれています。

ということでChangelogを訳してみました。

  • Handle ssh password prompts like "someone's password:"
    • sshのパスワードプロンプトを"someone's password:"のようにした。
  • Make CLI#echo available as a class method.
    • CLI#echoメソッド*1をクラスメソッドとして使用できるようにした。
  • Add CLI#with_echo.
    • CLI#with_echoを追加。
  • Make the default password prompt available as a class method.
    • デフォルトのパスワードプロンプトをクラスメソッドとして使えるようにした*2
  • Add documentation for the CLI class.
    • CLIクラスのドキュメントを追加。
  • Add a sanity check to make sure the correct versions of Net::SSH and Net::SFTP are installed.
    • Net::SSHとNet::SFTPの正しいバージョンがインストールされているかをチェックするようにした。
  • Added a cleanup task to remove unused releases from the deployment directory
    • deploy先ディレクトリ内の使われていないリリースを消す:cleanupタスクを追加した。
  • Allow password to be reentered on sudo if it was entered incorrectly
    • sudoでパスワードを間違っていた場合に、再入力可能にした。
  • Use && as the command separator for the checkouts, so that errors are caught early.
    • コマンドセパレータに'&&'を使うようにしたので、エラーが早期に発見できるようになった。
  • Ping each SSH connection every 1s during command processing so that long-running commands don't cause the connection to timeout.
    • 時間のかかるコマンドを実行したときもタイムアウトしないよう、sshコネクションで1秒毎にpingするようにした。
  • Add a 0.01s sleep during the command loop so that the CPU doesn't go ballistic while ST is doing its thing.
    • コマンド実行の間に0.01秒sleepするようにしたので、CPUを使いきっちゃわないようになった。
  • Add :restart_via variable for specifying whether restart ought to use :sudo (default, use sudo)
    • restartタスク実行時にsudoするかどうかを選べるよう、:restart_via変数を追加した。
  • Use SFTP for file transfers (if available).
    • (もし可能なら)ファイル転送にSFTPを使うようにした。
  • Add an "update_current" task that will do an svn up on the current release
    • 現在のリリースを更新する:update_currentタスクを追加した。
  • Use the :checkout variable to determine what operation to use for svn checkouts (instead of co, like "export").
    • :checkout変数を使ってsvn checkoutの時のオペレーションを選択できるようにした。('export'したりとか)
  • The Rails rake tasks now load ST directly, instead of invoking it via system
    • Railsのrakeタスクで、system()経由ではなく直接Switchtowerを呼び出すようにした。
  • Added ssh_options variable to configure the SSH connection parameters #2734 [jerrett@bravenet.com]
    • sshのパラメータを設定する:ssh_options変数を追加した。
  • Require Net::SSH 1.0.5
    • Net::SSH 1.0.5を使うようになった。

*1:stdinへのechoを切替える

*2:CLI.password_prompt prompt で任意のプロンプトを表示させられる、、みたいです