Skip to content

Commit

Permalink
Make sure we only get one IP address for each host
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbowes committed Oct 3, 2010
1 parent b4b6d0c commit b30b74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/murder/murder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
DESC
task :start_seeding, :roles => :seeder do
require_tag
run "screen -dms 'seeder-#{tag}' python #{remote_murder_path}/murder_client.py seeder '#{filename}.torrent' '#{filename}' `host $HOSTNAME | awk '{print $4}'`"
run "screen -dms 'seeder-#{tag}' python #{remote_murder_path}/murder_client.py seeder '#{filename}.torrent' '#{filename}' `host $HOSTNAME | awk '/has address/ {print $4}' | head -n 1`"
end

desc <<-DESC
Expand Down Expand Up @@ -91,7 +91,7 @@
end

upload("#{filename}.torrent", "#{filename}.torrent", :via => :scp)
run "/usr/bin/time -f %e python #{remote_murder_path}/murder_client.py peer '#{filename}.torrent' '#{filename}' `host $CAPISTRANO:HOST$ | awk '{print $4}'`"
run "/usr/bin/time -f %e python #{remote_murder_path}/murder_client.py peer '#{filename}.torrent' '#{filename}' `host $CAPISTRANO:HOST$ | awk '/has address/ {print $4}' | head -n 1`"

if ENV['path_is_file']
run "cp #{filename} #{destination_path}"
Expand Down

0 comments on commit b30b74b

Please sign in to comment.