knife soloにてエラー

* knife solo init chef-repo

Creating kitchen...

Creating knife.rb in kitchen...

Creating cupboards...

ERROR: knife encountered an unexpected error

This may be a bug in the 'solo init' knife command or plugin

Please collect the output of this command with the `-VV` option before filing a bug report.

Exception: NoMethodError: undefined method `select!' for #<Array:0x10e5f5848>

 

 

ruby 1.8.7ではselect!がないらしい。

 

rubyを共存しなければいけないのかな。

ここを参考にして構築

http://www.happytrap.jp/blogs/2013/04/08/10394/

1.8をインストールするにはそれようのコンパイラーがないといけないらしい。

 

ちぇー。

ここには1.8環境で動くって書いてあるんだけどなぁ。

http://kray.jp/blog/learning-chef/

 

 

とりあえず共存させて1.9にして

 

1.9環境にてknife-soloをインストール

gem install knife-solo --pre

http://k-mats.github.io/blog/2013/04/12/set-up-knife-solo/

 ではリポジトリ作成してみる

knife solo init chef-repo

 

できた。