Sha256: 5ce825752b8da140809c92ecc74a95a54d9f149cc1fff519412a49e47f7f0d2d
Contents?: true
Size: 607 Bytes
Versions: 46
Compression:
Stored size: 607 Bytes
Contents
require 'forwardable' module Bosh::Stemcell class ArchiveFilename extend Forwardable def initialize(version, definition, base_name, light) @version = version @definition = definition @base_name = base_name @light = light end def to_s stemcell_filename_parts = [ name, version, @definition.stemcell_name ] "#{stemcell_filename_parts.join('-')}.tgz" end private def name light ? "light-#{base_name}" : base_name end attr_reader( :base_name, :version, :light, ) end end
Version data entries
46 entries across 46 versions & 1 rubygems