Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (22 sloc) 0.601 kB
# Copyright (c) 2011 - 2013, SoundCloud Ltd., Rany Keddo, Tobias Bielohlawek, Tobias
# Schmidt
require 'lhm/intersection'
module Lhm
class Migration
attr_reader :origin, :destination
def initialize(origin, destination, time = Time.now)
@origin = origin
@destination = destination
@start = time
end
def archive_name
"lhma_#{ startstamp }_#{ @origin.name }"
end
def intersection
Intersection.new(@origin, @destination)
end
def startstamp
@start.strftime "%Y_%m_%d_%H_%M_%S_#{ "%03d" % (@start.usec / 1000) }"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.