def self.preamble
tags = (["pkcs7"] + Plugins.plugins.collect {|plugin|
plugin.name.split("hiera-eyaml-").last
}).collect{|name| Encryptor.find(name).tag}
preamble = "This is eyaml edit mode. This text (lines starting with \#{self.prefix} at the top of the\nfile) will be removed when you save and exit.\n- To edit encrypted values, change the content of the DEC(<num>)::PKCS7[]!\nblock\#{(tags.size>1) ? \" (or \#{tags.drop(1).collect {|tag| \"DEC(<num>)::\#{tag}[]!\" }.join(' or ')}).\" : '.' }\nWARNING: DO NOT change the number in the parentheses.\n- To add a new encrypted value copy and paste a new block from the\nappropriate example below. Note that:\n* the text to encrypt goes in the square brackets\n* ensure you include the exclamation mark when you copy and paste\n* you must not include a number when adding a new block\ne.g. \#{tags.collect {|tag| \"DEC::\#{tag}[]!\" }.join(' -or- ')}\n"
preamble.gsub(/^/, "#{self.prefix} ")
end