Class: BuildMetadata
- Inherits:
-
Object
- Object
- BuildMetadata
- Includes:
- Common
- Defined in:
- lib/bento/buildmetadata.rb
Instance Method Summary collapse
-
#initialize(template, build_timestamp, override_version) ⇒ BuildMetadata
constructor
A new instance of BuildMetadata.
- #read ⇒ Object
Methods included from Common
#banner, #box_metadata, #build_list, #builds_yml, #duration, #info, #macos?, #metadata_files, #private_box?, #unix?, #vc_account, #warn, #windows?
Constructor Details
#initialize(template, build_timestamp, override_version) ⇒ BuildMetadata
Returns a new instance of BuildMetadata.
7 8 9 10 11 |
# File 'lib/bento/buildmetadata.rb', line 7 def initialize(template, , override_version) @template = template @build_timestamp = @override_version = override_version end |
Instance Method Details
#read ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/bento/buildmetadata.rb', line 13 def read { name: name, version: version, build_timestamp: , git_revision: git_revision, git_status: git_clean? ? "clean" : "dirty", box_basename: box_basename, template: template_vars.fetch("template", UNKNOWN), packer: packer_ver, vagrant: vagrant_ver, } end |