Class: Umwelt::Project::File::Restore

Inherits:
Abstract::File::Restore show all
Defined in:
lib/umwelt/project/file/restore.rb

Instance Method Summary collapse

Methods inherited from Abstract::Interactor

#prove

Constructor Details

#initialize(path: '.umwelt', mapper: Umwelt::Project::Mapper) ⇒ Restore

Returns a new instance of Restore.



7
8
9
10
11
12
# File 'lib/umwelt/project/file/restore.rb', line 7

def initialize(
  path: '.umwelt',
  mapper: Umwelt::Project::Mapper
)
  super
end

Instance Method Details

#callObject



14
15
16
# File 'lib/umwelt/project/file/restore.rb', line 14

def call
  @struct = struct parse read full_path
end

#full_pathObject



18
19
20
# File 'lib/umwelt/project/file/restore.rb', line 18

def full_path
  umwelt_root_path / 'project.json'
end