mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 03:46:40 +00:00
25 lines
314 B
Ruby
25 lines
314 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'yaml'
|
|
|
|
class Tarball
|
|
attr_reader :file
|
|
attr_reader :commit
|
|
|
|
def initialize(file:, commit:)
|
|
@file = file
|
|
@commit = commit
|
|
end
|
|
|
|
def to_hash
|
|
{
|
|
'file' => file,
|
|
'commit' => commit.to_hash
|
|
}
|
|
end
|
|
|
|
def to_yaml
|
|
to_hash.to_yaml
|
|
end
|
|
end
|