Class: PyenvUtil

Inherits:
Object
  • Object
show all
Defined in:
lib/yadecli/util/pyenv_util.rb

Overview

rvm util

Class Method Summary collapse

Class Method Details

.setup_pyenv(project, pyenv_runtime) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/yadecli/util/pyenv_util.rb', line 6

def self.setup_pyenv(project, pyenv_runtime)
  puts ''
  puts 'Setup pyenv:'.colorize(:mode => :bold)

  # .pyenv-version
  puts " ↳ Create .pyenv-version with #{pyenv_runtime.version}"
  File.open("#{project.home}/.pyenv-version", 'w') { |f| f.write(pyenv_runtime.version) }
end