Method: RightConf::Command#set_ruby

Defined in:
lib/rconf/command.rb

#set_ruby(version) ⇒ Object

Set ruby to be used by ‘execute_in_ruby’

Parameters

version(String)

rbenv ruby version

Return

true

Always return true



131
132
133
134
135
# File 'lib/rconf/command.rb', line 131

def set_ruby(version)
  @ruby_version = version
  File.open('.ruby-version', 'w') { |f| f.puts version }
  true
end