Sha256: b7784960744f8f5eb2e478d9cc9c975895de11649a16fe0d23ae00f9b688f625

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

module Umwelt::Project::File
  class Store < Umwelt::Abstract::File::Store
    def call(struct)
      full_path.dirname.mkpath

      full_path.write serialize destruct struct
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
umwelt-0.1.1 lib/umwelt/project/file/store.rb