class CookbookOmnifetch::MetadataBasedInstaller::CookbookMetadata
Constants
- FILE_TYPES
Public Class Methods
new(metadata)
click to toggle source
# File lib/cookbook-omnifetch/metadata_based_installer.rb, line 23 def initialize(metadata) @metadata = metadata end
Public Instance Methods
files() { |file, file, file| ... }
click to toggle source
# File lib/cookbook-omnifetch/metadata_based_installer.rb, line 27 def files(&block) FILE_TYPES.each do |type| next unless @metadata.key?(type.to_s) @metadata[type.to_s].each do |file| yield file["url"], file["path"], file["checksum"] end end end