level 7
[user@AP Taobao]$ echo 2.2.2 > .ruby-version
[user@AP Taobao]$ echo taobao > .ruby-gemset
[user@AP Taobao]$ cd ..
[user@AP ~]$ cd -
/home/user/Taobao
ruby-2.2.2 - #gemset created /home/user/.rvm/gems/ruby-2.2.2@taobao
ruby-2.2.2 - #generating taobao wrappers..........
[user@AP Taobao]$ bundle init
Writing new Gemfile to /home/user/Taobao/Gemfile
[user@AP Taobao]$ vi Gemfile
# A sample Gemfile
source "https://ruby.taobao.org"
gem "sinatra", :require => 'sinatra/base'
[user@AP Taobao]$ bundle
Fetching source index from https://ruby.taobao.org/
Resolving dependencies.....
Installing rack 1.6.1
Installing rack-protection 1.5.3
Installing tilt 2.0.1
Installing sinatra 1.4.6
Using bundler 1.9.9
Bundle complete! 1 Gemfile dependency, 5 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
2015年06月09日 01点06分
