Create .ruby-version and .ruby-gemset with rvm

前端 未结 4 1555
情歌与酒
情歌与酒 2021-01-30 00:54

Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset?

With older versions of rvm, one could

4条回答
  •  爱一瞬间的悲伤
    2021-01-30 01:20

    According to the official RVM docs you can use this:

    echo 1.9.3 > .ruby-version
    

    Or you can use this:

    rvm --ruby-version use 1.9.3@my_app
    

    The second form will create both .ruby-version and .ruby-gemset.

提交回复
热议问题