lib/entangler/executor/validation/master.rb in entangler-1.2.3 vs lib/entangler/executor/validation/master.rb in entangler-1.3.0
- old
+ new
@@ -47,10 +47,10 @@
end
def validate_remote_entangler_version
return unless @opts[:remote_mode]
- res = `#{generate_ssh_command('source ~/.rvm/environments/default && entangler --version')}`
+ res = `#{generate_ssh_command('entangler --version', source_rvm: true)}`
if res.empty?
msg = 'Entangler is not installed on the remote server.' \
' Install Entangler on the remote server (SSH in, then `gem install entangler`), then try again.'
raise Entangler::NotInstalledOnRemoteError, msg
end