Difference between gmset rvm list and rvm list

rvm list gemset displays a list of rmm rvm and

gemset list rvm displays a gemset list for specific gemset rvm selected.

Is this the correct explanation?

Please help me clear this means the correct explanation of when to use and how useful it is?

Thanks for your input.

+4
source share
2 answers

rvm list gemset displays a list of all rvm gemsets created for all ruby ​​versions.

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 ]

gemset list rvm shows the gemset list for current ruby ​​versions.

eg

gemsets for ruby-2.1.2 (found in /home/rails/.rvm/gems/ruby-2.1.2)
   (default)
   a
   b
   c
=> d
+4
source
  • rvm list

    • , rvm, , rvm.

      =* ruby-2.0.0-p451 [ x86_64 ]
      *ruby-2.1.1 [ x86_64 ]
      # => - current
      # =* - current && default
      #  * - default
      
  • rvm list gemsets

    • rvms gemset, rvm
      :
      • ruby-2.0.0-p451 rails3, rails3.2
      • ruby-2.1.0@rails4 [x86_64] rails4 .

        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 ]
        
  • gemset rvm

    • 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
       
+1

All Articles