Sha256: b706f4e58bfa294407af13db682125b84f8749ecac410611a7d84afd990b96e2
Contents?: true
Size: 594 Bytes
Versions: 8
Compression:
Stored size: 594 Bytes
Contents
# Copyright (c) 2011, 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
Version data entries
8 entries across 8 versions & 1 rubygems