Module: Backup::FileItem
- Defined in:
- lib/backup/file_item.rb,
lib/backup/file_item/base.rb,
lib/backup/file_item/cloud.rb,
lib/backup/file_item/local.rb
Defined Under Namespace
Classes: Base, Cloud, Local
Class Method Summary
collapse
Class Method Details
.for(type, *args) ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/backup/file_item.rb', line 6
def self.for(type, *args)
case type
when :cloud
Backup::FileItem::Cloud.new *args
when :local
Backup::FileItem::Local.new
else
puts_fail "Unknown '#{type}' type for FileItem"
end
end
|