Method: Backup::Instance#initialize
- Defined in:
- lib/backup.rb
#initialize(root_path, cloud = false, *args) ⇒ Instance
Returns a new instance of Instance.
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/backup.rb', line 13 def initialize(root_path, cloud = false, *args) if cloud @file_item = Backup::FileItem.for :cloud, *args else @file_item = Backup::FileItem.for :local end @hostname = Socket.gethostname @_root_path = @root_path @root_path = "#{root_path}/#{@hostname}" = Backup::Timestamp.create end |