Method: BC3::Snapshot#initialize

Defined in:
lib/bc3/snapshot.rb

#initialize(path, timestamp = Time.now) ⇒ Snapshot

Returns a new instance of Snapshot.



27
28
29
30
31
32
33
34
35
# File 'lib/bc3/snapshot.rb', line 27

def initialize( path, timestamp = Time.now )
  $log.debug("Create Snapshot #{path}")
  @path = path
  @timestamp = timestamp || Time.now
  
  $log.debug("Create base folder for snapshot #{path}")
  @basefolder = Folder.new('SnapshotRoot', @timestamp)
  @index = nil
end