Sha256: 26d407d4a08a341ad3fa93bb4f45851ba1c9bd23ab6576141f323fb1e58bca3e

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true
require 'safe_yaml'
SafeYAML::OPTIONS[:default_mode] = :safe

class Manifest
  attr_accessor :values

  def initialize(manifest_file)
    f = File.new manifest_file, 'r'
    @values = YAML.load f.read
  end

  def name
    "#{@values['registry']}/#{@values['name']}:#{@values['version']}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
norad_cli-0.1.1 lib/norad_cli/support/manifest.rb
norad_cli-0.1.0 lib/norad_cli/support/manifest.rb