{"action":"created","issue":{"url":"https://api.github.com/repos/Configi/configi/issues/4","repository_url":"https://api.github.com/repos/Configi/configi","labels_url":"https://api.github.com/repos/Configi/configi/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Configi/configi/issues/4/comments","events_url":"https://api.github.com/repos/Configi/configi/issues/4/events","html_url":"https://github.com/Configi/configi/issues/4","id":187545807,"number":4,"title":"Can you upload a non-moonscript example?","user":{"login":"oconnore","id":1103746,"avatar_url":"https://avatars.githubusercontent.com/u/1103746?v=3","gravatar_id":"","url":"https://api.github.com/users/oconnore","html_url":"https://github.com/oconnore","followers_url":"https://api.github.com/users/oconnore/followers","following_url":"https://api.github.com/users/oconnore/following{/other_user}","gists_url":"https://api.github.com/users/oconnore/gists{/gist_id}","starred_url":"https://api.github.com/users/oconnore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oconnore/subscriptions","organizations_url":"https://api.github.com/users/oconnore/orgs","repos_url":"https://api.github.com/users/oconnore/repos","events_url":"https://api.github.com/users/oconnore/events{/privacy}","received_events_url":"https://api.github.com/users/oconnore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-06T06:50:30Z","updated_at":"2016-11-07T02:33:46Z","closed_at":null,"body":"I keep getting the same output no matter what I put in config.lua:\r\n\r\n```\r\nbin/cfg -vf config.lua \r\nStarted run 2016-11-06 00:44:46 MDT-0600\r\nApplying policy: ./config.lua\r\n------------\r\nKept: true\r\nFinished run in 0 seconds\r\n```\r\n\r\nSo far I've tried\r\n\r\n```\r\nfile.touch(\"hello\", {\r\n  comment = \"what\",\r\n  handle = \"touch\"\r\n})\r\n```\r\n\r\n```\r\nfile.touch(\"hello\") {\r\n  comment = \"what\",\r\n  handle = \"touch\"\r\n}\r\n```\r\n\r\n```\r\nfile.touch \"hello\" {\r\n  comment = \"what\",\r\n  handle = \"touch\"\r\n}\r\n```\r\n\r\n```\r\nfile.touchyyyy \"hello\" {\r\n  comment = \"what\",\r\n  handle = \"touch\"\r\n}\r\n\r\nfile.nopenopenpe(\"hello\", {\r\n  comment = \"what\",\r\n  handle = \"touch\"\r\n})\r\n```\r\n\r\nAnd I never get a file, or even any different output when I call a bogus module.\r\n\r\nAlso, I don't know how moonscript works, but when I copy/paste the example from the website, I get:\r\n\r\n```\r\n$ ./bin/cfg -vf policy \r\n[string \"configi\"]:626: attempt to index a nil value (field '?')\r\n$ cat policy\r\nfile.directory\"/tmp/dir\"\r\n  comment: \"Create directory if running on Gentoo\"\r\n  context: fact.osfamily.gentoo\r\n  mode: \"0700\"\r\n  notify: \"touch\"\r\n\r\nyum.present\"mtr\"\r\n  context: fact.osfamily.centos\r\n\r\nfile.absent\"/tmp/dir\"\r\n  notify: \"touch\"\r\n\r\nfile.touch\"/tmp/dir\"\r\n  comment: \"Handle 'touch' notifications. This is only executed once.\"\r\n  handle: \"touch\"\r\n```"},"comment":{"url":"https://api.github.com/repos/Configi/configi/issues/comments/258734392","html_url":"https://github.com/Configi/configi/issues/4#issuecomment-258734392","issue_url":"https://api.github.com/repos/Configi/configi/issues/4","id":258734392,"user":{"login":"oconnore","id":1103746,"avatar_url":"https://avatars.githubusercontent.com/u/1103746?v=3","gravatar_id":"","url":"https://api.github.com/users/oconnore","html_url":"https://github.com/oconnore","followers_url":"https://api.github.com/users/oconnore/followers","following_url":"https://api.github.com/users/oconnore/following{/other_user}","gists_url":"https://api.github.com/users/oconnore/gists{/gist_id}","starred_url":"https://api.github.com/users/oconnore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oconnore/subscriptions","organizations_url":"https://api.github.com/users/oconnore/orgs","repos_url":"https://api.github.com/users/oconnore/repos","events_url":"https://api.github.com/users/oconnore/events{/privacy}","received_events_url":"https://api.github.com/users/oconnore/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T02:33:46Z","updated_at":"2016-11-07T02:33:46Z","body":"I figured out how to write policy .lua files (`<module>.<function>(<subject>){ <arg> = <value> ... }`, but I think the second thing is still a bug?"}}
{"actor":{"display_login":"oconnore"}}