def generate_ruby_version
      ruby_version = (RUBY_PATCHLEVEL == 0) ? RUBY_VERSION : "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
      File.open("#{self.path}/.ruby-version", 'w') do |f|
        f.write ruby_version
      end
    end
def generate_ruby_version
      ruby_version = (RUBY_PATCHLEVEL == 0) ? RUBY_VERSION : "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
      File.open("#{self.path}/.ruby-version", 'w') do |f|
        f.write ruby_version
      end
    end
Create rbenv local