lib/table_differ.rb
# pass a date or name fragment, receive the full snapshot name.
# it's ok to pass a snapshot name; it will be returned unchaged.
pass a date or name fragment, receive the full snapshot name.
it's ok to pass a snapshot name; it will be returned unchaged.
pass a date or name fragment receive the full snapshot name . it ' s ok to pass a snapshot name ; it will be returned unchaged .
def snapshot_name name
      return nil if name.nil?
      if name.kind_of?(Date) || name.kind_of?(Time)
        name = name.strftime("%Y%m%d_%H%M%S")
      end
      unless name.index(table_name) == 0
        name = "#{table_name}_#{name}"
      end
      name
    end
def snapshot_name name return nil if name . nil? if name . kind_of? ( Date ) || name . kind_of? ( Time ) name = name . strftime ( "%Y%m%d_%H%M%S" ) end unless name . index ( table_name ) == 0 name = "#{table_name}_#{name}" end name end
pass a date or name fragment, receive the full snapshot name.
pass a date or name fragment receive the full snapshot name .
name
<not_specific>