module MiGA::Result::Versions

Helper module including functions for results to handle software versions

Public Instance Methods

add_versions(versions) click to toggle source

Add version information for the Software used by this result

# File lib/miga/result/versions.rb, line 14
def add_versions(versions)
  versions.each { |k, v| self[:versions][k.to_sym] = v }
end
versions() click to toggle source

Return the versions hash

# File lib/miga/result/versions.rb, line 8
def versions
  self[:versions]
end
versions_md() click to toggle source

Get list of software and their versions as raw text (Markdown)

# File lib/miga/result/versions.rb, line 20
def versions_md
  versions.map { |k, v| "- #{k}: #{v}" }.join("\n")
end