Simon Marechal

Results 191 comments of Simon Marechal

One solution is to rewrite the ruby functions in lua, and put them at the adequate place in the module. It will not work properly with language-puppet in this particular...

It's entirely possible to have this done. This is however a major undertaking : it would be necessary to write quite a bit of support code in Ruby and write...

It is clearly not trivial, as it requires that `language-puppet` implements a `newfunction` function that would register this function properly in the interpreter. This is by no means impossible, just...

There already is [a system for external functions](https://github.com/bartavelle/language-puppet/blob/b8e253501fc6ed3e0ea0ae4ee262191a72d2a2f4/Puppet/Interpreter/Types.hs#L289) that was made for LUA. Note that this doesn't let you encode functions such as `ensure_packages` as it can't return `Resource`s. Now...

The hard part is that all the things that the functions can call must be mocked in advance, or it won't work !

Hum, yes, that should be nice to add. I am not sure when I will have time for it though :/

It would be a significant endeavor, as language-puppet works like "old puppet", where things are either statements or expressions. This won't cut it with templates, where most things are statement...

I am looking into using a lexer that mimicks the original. This would have support for epp out of the box. However, it would require supporting expressions as statements, which...

Yeah, that kind of thing is not supported yet :( I will see if it is obvious or not to port ...

It should be straightforward to write a `Sensitive` function that does nothing. However, `Sensitive.new` would probably be hard to support!