Class: SimpleBackup::Source::DirStrategy::Bare
- Inherits:
-
Object
- Object
- SimpleBackup::Source::DirStrategy::Bare
- Defined in:
- lib/simple_backup/source/dir_strategy/bare.rb
Instance Method Summary collapse
Instance Method Details
#get_entries(path) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/simple_backup/source/dir_strategy/bare.rb', line 5 def get_entries(path) ::Dir.entries(path).map do |p| if p.match(/^\.\.?$/) nil else ::File.join(path, p) end end.compact end |