Class: Backy::List
- Inherits:
-
Object
- Object
- Backy::List
- Defined in:
- lib/backy/list.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/backy/list.rb', line 3 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?: locals.include?(dump_file), remote?: remotes.include?(dump_file), dump_file: dump_file) end end |