Sha256: 4d76b97dc05cba3ce28595640b005b50040176290fd62d28aa3bfe0767e8a100
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
module Backy class List def call locals = Set.new(Dir.glob(dump_wildcard)) remotes = Set.new(S3List.new.call) (locals + remotes).sort.map do |dump_file| OpenStruct.new(local?: dump_file.in?(locals), remote?: dump_file.in?(remotes), dump_file: dump_file) end end private def dump_wildcard PgDump::DUMP_DIR + "/*" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backy_rb-0.1.3 | lib/backy/list.rb |