Class: NvmUtil
- Inherits:
-
Object
- Object
- NvmUtil
- Defined in:
- lib/yadecli/util/nvm_util.rb
Overview
rvm util
Class Method Summary collapse
Class Method Details
.setup_nvm(project, nvm_runtime) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/yadecli/util/nvm_util.rb', line 6 def self.setup_nvm(project, nvm_runtime) puts '' puts 'Setup nvm:'.colorize(:mode => :bold) # .nvmrc puts " ↳ Create .nvmrc with #{nvm_runtime.version}" File.open("#{project.home}/.nvmrc", 'w') { |f| f.write(nvm_runtime.version) } end |