23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/capistrano/recipes/deploy/strategy/murder.rb', line 23
def upload(filename, remote_filename)
puts "Uploading release to seeder..."
configuration.upload(filename, remote_filename, :roles => :seeder)
ENV["tag"] = File.basename(filename)
ENV["path_is_file"] = "yes"
ENV["files_path"] = remote_filename
ENV['destination_path'] = remote_filename
puts "Creating torrent..."
murder.create_torrent
puts "Starting seeding..."
murder.start_seeding
puts "Peering..."
murder.peer
puts "Done. Killing seeding and all peering..."
murder.stop_peering
murder.stop_seeding
puts "Cleaning temp files..."
murder.clean_temp_files
puts "THANK YOU FOR USING MURDER, HAVE A NICE DAY"
end
|