Sha256: ffcdd5b931670ccd2ea1dc12ffff697adb3770ff2d701c0275944586397c9bbe

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

require_relative '../../structs/history'

module Umwelt::Project::File
  class Restore < Umwelt::Abstract::File::Restore
    def initialize(
      path: '.umwelt',
      mapper: Umwelt::Project::Mapper
    )
      super
    end

    def call
      @struct = struct parse read full_path
    end

    def full_path
      umwelt_root_path / 'project.json'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
umwelt-0.2 lib/umwelt/project/file/restore.rb
umwelt-0.1.1 lib/umwelt/project/file/restore.rb
umwelt-0.1.0 lib/umwelt/project/file/restore.rb