bundleを使えるようにする
% sudo gem install bundler
Password:
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
saharaのインストール
% git clone git://github.com/ryuzee/sahara.git
Cloning into 'sahara'...
remote: Counting objects: 289, done.
remote: Compressing objects: 100% (157/157), done.
remote: Total 289 (delta 137), reused 262 (delta 112)
Receiving objects: 100% (289/289), 36.13 KiB, done.
Resolving deltas: 100% (137/137), done.
本家はこっちだけど、うまく動かないのでforkされた方を使う。
% cd sahara
% bundle install
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake (0.9.2.2)
Installing Platform (0.4.0)
Using archive-tar-minitar (0.5.2)
Installing ffi (1.0.11)
Installing childprocess (0.3.2)
Using erubis (2.7.0)
Installing i18n (0.6.0)
Installing json (1.5.4)
Using log4r (1.1.10)
Using net-ssh (2.2.2)
Using net-scp (1.0.4)
Installing open4 (1.3.0)
Installing popen4 (0.1.2)
Installing thor (0.15.2)
Installing vagrant (1.0.3)
Using sahara (0.0.14) from source at .
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
% bundle exec rake build
sahara 0.0.14 built to pkg/sahara-0.0.14.gem.
gemファイルが作れたら、vagrantのプラグインに追加。
% sudo vagrant plugin install pkg/sahara-0.0.14.gem
Installing the 'pkg/sahara-0.0.14.gem' plugin. This can take a few minutes...
Installed the plugin 'sahara (0.0.14)'!
使えるようになりました。
% sudo vagrant sandbox
Usage: vagrant plugin <command> [<args>]
Available subcommands:
commit
off
on
rollback
status
For help on any individual command run `vagrant plugin COMMAND -h`