Sha256: ee6e233e038e62463a62387b6daa8ce43b93effb1e91c0e14c03ef8aab56d6b3
Contents?: true
Size: 367 Bytes
Versions: 22
Compression:
Stored size: 367 Bytes
Contents
require 'backup/file_item/local' require 'backup/file_item/cloud' module Backup module FileItem 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 end end
Version data entries
22 entries across 22 versions & 2 rubygems