class Berkshelf::InvalidCookbookFiles
Raised when a cookbook or its recipes contain a space or invalid character in the path.
@param [CachedCookbook] cookbook
the cookbook that failed validation
@param [Array<#to_s>] files
the list of files that were not valid
Public Class Methods
new(cookbook, files)
click to toggle source
# File lib/berkshelf/errors.rb, line 348 def initialize(cookbook, files) @cookbook = cookbook @files = files end
Public Instance Methods
to_s()
click to toggle source
# File lib/berkshelf/errors.rb, line 353 def to_s [ "The cookbook '#{@cookbook.cookbook_name}' has invalid filenames:", "", " " + @files.map(&:to_s).join("\n "), "", "Please note, spaces are not a valid character in filenames", ].join("\n") end
Also aliased as: message