lib/bosh/stemcell/archive_filename.rb in bosh-stemcell-1.2824.0 vs lib/bosh/stemcell/archive_filename.rb in bosh-stemcell-1.2827.0
- old
+ new
@@ -2,22 +2,24 @@
module Bosh::Stemcell
class ArchiveFilename
extend Forwardable
- def initialize(version, definition, base_name)
+ def initialize(version, definition, base_name, disk_format)
@version = version
@definition = definition
@base_name = base_name
+ @disk_format = disk_format
end
def to_s
stemcell_filename_parts = [
name,
version,
- definition.stemcell_name
+ definition.stemcell_name(disk_format)
]
+
"#{stemcell_filename_parts.join('-')}.tgz"
end
private
@@ -27,8 +29,9 @@
attr_reader(
:base_name,
:version,
:definition,
+ :disk_format,
)
end
end