{"action":"created","issue":{"url":"https://api.github.com/repos/bartavelle/language-puppet/issues/52","labels_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/52/comments","events_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/52/events","html_url":"https://github.com/bartavelle/language-puppet/issues/52","id":42150555,"number":52,"title":"custom ruby functions ?","user":{"login":"PierreR","id":93115,"avatar_url":"https://avatars.githubusercontent.com/u/93115?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreR","html_url":"https://github.com/PierreR","followers_url":"https://api.github.com/users/PierreR/followers","following_url":"https://api.github.com/users/PierreR/following{/other_user}","gists_url":"https://api.github.com/users/PierreR/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreR/subscriptions","organizations_url":"https://api.github.com/users/PierreR/orgs","repos_url":"https://api.github.com/users/PierreR/repos","events_url":"https://api.github.com/users/PierreR/events{/privacy}","received_events_url":"https://api.github.com/users/PierreR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bartavelle/language-puppet/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-09-07T19:56:55Z","updated_at":"2015-03-31T14:53:17Z","closed_at":null,"body":"I am wondering how `language-puppet` is going to deal with custom ruby functions when there are integrated within a module.\r\n\r\nRecently `puppetlabs-concat` for instance has started to replace a bunch of `stdlib` function with their own version (in order to remove `stdlib v4` dependencies). This sounds quite strange to me but well what can we do ;-)\r\n\r\nHere is a couple of examples:\r\nhttps://github.com/puppetlabs/puppetlabs-concat/blob/master/manifests/init.pp#L78\r\nhttps://github.com/puppetlabs/puppetlabs-concat/blob/master/manifests/fragment.pp#L59\r\n\r\n`puppetlabs-concat` is used everywhere so I will end up ignoring many modules (which is quite annoying you can imagine).\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/bartavelle/language-puppet/issues/comments/88118393","html_url":"https://github.com/bartavelle/language-puppet/issues/52#issuecomment-88118393","issue_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/52","id":88118393,"user":{"login":"bartavelle","id":1183983,"avatar_url":"https://avatars.githubusercontent.com/u/1183983?v=3","gravatar_id":"","url":"https://api.github.com/users/bartavelle","html_url":"https://github.com/bartavelle","followers_url":"https://api.github.com/users/bartavelle/followers","following_url":"https://api.github.com/users/bartavelle/following{/other_user}","gists_url":"https://api.github.com/users/bartavelle/gists{/gist_id}","starred_url":"https://api.github.com/users/bartavelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartavelle/subscriptions","organizations_url":"https://api.github.com/users/bartavelle/orgs","repos_url":"https://api.github.com/users/bartavelle/repos","events_url":"https://api.github.com/users/bartavelle/events{/privacy}","received_events_url":"https://api.github.com/users/bartavelle/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T14:53:17Z","updated_at":"2015-03-31T14:53:17Z","body":"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 tricky."}}