rvm list gemsets 显示安装rvm gemsets列表和
rvm gemset list 显示特定选定rvm gemsets的gemset列表。
这是正确的解释吗?
请帮我清除这意味着正确的解释,何时使用以及它如何有用?
感谢您的意见。
答案 0 :(得分:4)
rvm list gemsets 显示所有已创建的所有ruby版本的rvm gemsets列表。
for example
ruby-1.9.3@a [ i686 ]
ruby-1.9.3@b [ i686 ]
ruby-1.9.3@c [ i686 ]
ruby-2.0.0@a [ i686 ]
ruby-2.0.0@b [ i686 ]
ruby-2.0.0@c [ i686 ]
ruby-2.1.0@a [ i686 ]
ruby-2.1.0@b [ i686 ]
ruby-2.1.0@c [ i686 ]
=> ruby-2.1.2@d [ i686 ]
rvm gemset list 显示当前ruby版本的gemsets列表。
例如
gemsets for ruby-2.1.2 (found in /home/rails/.rvm/gems/ruby-2.1.2)
(default)
a
b
c
=> d
答案 1 :(得分:1)
rvm list
=* ruby-2.0.0-p451 [ x86_64 ]
*
ruby-2.1.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
rvm list gemsets
ruby-2.0.0-p451
有rails3,rails3.2 ruby-2.1.0@rails4
[x86_64]将rails4作为单独的gemset。rvm gemsets => ruby-2.0.0-p451 [ x86_64 ] ruby-2.0.0-p451@global [ x86_64 ] ruby-2.0.0-p451@rails3 [ x86_64 ] ruby-2.0.0-p451@rails3.2 [ x86_64 ] ruby-2.1.1 [ x86_64 ] ruby-2.1.1@global [ x86_64 ] ruby-2.1.0@rails4 [ x86_64 ]
rvm gemset list
它会列出当前rvm的gemsets
例如:
1.使用rvm ruby-2.0.0-p451
$ rvm use ruby-2.0.0-p451 $ rvm gemset list gemsets for ruby-2.0.0-p451 (found in /Users/macbook-chanakya/.rvm/gems/ruby-2.0.0-p451)
=>(default) global rails3 rails3.2
2。使用rvm ruby-2.1.1
$ rvm use ruby-2.1.1 /Users/macbook-chanakya/.rvm/gems/ruby-2.1.1 $ rvm gemset list gemsets for ruby-2.1.1 (found in /Users/macbook-chanakya/.rvm/gems/ruby-2.1.1) =>(default) global rails4