Sha256: 611761795d8ec08e6a2173f021c31da269270417ba79fb0c6868973e2dee1b36

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require_relative "utils"
require "lutaml/model"
require_relative "collection_manifest"
require "metanorma/cli"
require "metanorma/cli/collection"
require "metanorma/collection/collection"

module Suma
  class CollectionConfig < Metanorma::Collection::Config::Config
    attribute :manifest, ::Suma::CollectionManifest

    def self.from_file(path)
      from_yaml(File.read(path))
    end

    def to_file(path)
      File.open(path, "w") { |f| f.write to_yaml }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
suma-0.1.6 lib/suma/collection_config.rb
suma-0.1.5 lib/suma/collection_config.rb