```ruby
## nodenv.rb
#
# Adds capistrano/nodenv specific variables and tasks

namespace :load do
  task :defaults do

    # Set the node version using the .node-version file
    # Looks for the file in the project root
    set :nodenv_node, File.read('.node-version').strip

  end
end
```

Check if .ruby-version file exists
user
```ruby
## nodenv.rb
#
# Adds capistrano/nodenv specific variables and tasks

namespace :load do
  task :defaults do

    # Set the node version using the .node-version file
    # Looks for the file in the project root
    set :nodenv_node, File.read('.node-version').strip if File.exist?('.node-version')

  end
end
```
assistant