LoginSignup
6
6

More than 5 years have passed since last update.

Itamaeをアップグレード

Posted at

Goal

  • Itamae v1.2.13からtemplateやremote_fileがソースファイルを推測して配備してくれるようになった
  • source :auto(デフォルト)でタスクを実行するとソースファイル推測機能が使える
  • この機能を使うためItamaeをv1.2.13にアップグレードする

Reference

gemを更新

gem list itamae
  # itamae (1.1.4)

gem update itamae
  # itamae (1.2.13,1.1.4)

gem uninstall itamae -v '1.1.4'
  # 古い方を消しておく

vagrant-itamaeを使っている場合

vagrantプラグインのvagrant-itamaeが使うitamaeはgem installしたitamaeとは別の場所にインストールされているので、gem uninstallで消してもvagrant provisionでは古いitamaeが使われてしまう.
vagrant-itamaeプラグインを一度消してインストールし直すとよい.

vagrant plugin list
  # vagrant-itamae (0.1.0)
  # installされてることを確認

ls -l ~/.vagrant.d/gems/gems/
  # itamae-1.1.4
  # vagrant.dディレクトリのgems以下に古いバージョンのitamaeが入っていることを確認しておく

vagrant plugin uninstall vagrant-itamae
vagrant plugin install vagrant-itamae

ls -l /Users/metheglin/.vagrant.d/gems/gems/
  # itamae-1.2.13
  # vagrant.dディレクトリのgems以下のitamaeが更新されたことを確認
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6