lib/remote_run/configuration.rb in remote_run-0.1.6 vs lib/remote_run/configuration.rb in remote_run-0.1.7

- old
+ new

@@ -7,23 +7,23 @@ def initialize @task_manager = TaskManager.new @host_manager = HostManager.new + # used in the runner + @identifier = `echo $RANDOM`.strip + @local_hostname = `hostname`.strip + @local_path = Dir.getwd @login_as = ENV["USER"] - @remote_path = "/tmp/remote" + @remote_path = "/tmp/remote/#{local_hostname}" @exclude = [] @temp_path = "/tmp/remote" @quiet = false @start_time = Time.now @known_hosts = File.expand_path("#{ENV['HOME']}/.ssh/known_hosts") @ssh_options = "-o NoHostAuthenticationForLocalhost=yes -o UserKnownHostsFile=#{known_hosts} -o NumberOfPasswordPrompts=0 -o StrictHostKeyChecking=no -o ConnectTimeout=3 -4 " @rsync_options = "--delete --rsh='ssh #{ssh_options}' --timeout=60 -a" - - # used in the runner - @identifier = `echo $RANDOM`.strip - @local_hostname = `hostname`.strip @before_run = Proc.new{} @after_run = Proc.new{} @around_run = Proc.new {|&block| block.call } @before_task = Proc.new{}