search for: optionalkey

Displaying 2 results from an estimated 2 matches for "optionalkey".

Did you mean: optionality
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
...llvm::yaml::Output; using llvm::yaml::YamlMap; struct Person : public YamlMap { StringRef name; uint8_t age; bool speaks_french; void yamlMapping(IO &io) { requiredKey(io, name, "name"); requiredKey(io, age, "age"); optionalKey(io, speaks_french, "speaks-french"); } }; typedef Sequence<Person> PersonList; typedef DocumentList<PersonList> PersonDocumentList; That's it. The yamlMapping() method is processed by both the Input and Output to properly handle key-values in a yaml mapping...
2007 Nov 21
2
I''m lost on exec
Hi Can anyone tell me what''s wrong with this one. Sorry I''m new and I just want to print some message to the the puppet log on the client side. --------------------------------------------------- $testvar = "Hello world!" class mytest { exec { "/bin/echo $testvar" } } I keep getting: err: Could not parse; using old configuration: Syntax error at