{"action":"created","issue":{"url":"https://api.github.com/repos/aleksposte/typograf/issues/17","labels_url":"https://api.github.com/repos/aleksposte/typograf/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/aleksposte/typograf/issues/17/comments","events_url":"https://api.github.com/repos/aleksposte/typograf/issues/17/events","html_url":"https://github.com/aleksposte/typograf/issues/17","id":122493080,"number":17,"title":"workflow","user":{"login":"the-teacher","id":496713,"avatar_url":"https://avatars.githubusercontent.com/u/496713?v=3","gravatar_id":"","url":"https://api.github.com/users/the-teacher","html_url":"https://github.com/the-teacher","followers_url":"https://api.github.com/users/the-teacher/followers","following_url":"https://api.github.com/users/the-teacher/following{/other_user}","gists_url":"https://api.github.com/users/the-teacher/gists{/gist_id}","starred_url":"https://api.github.com/users/the-teacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-teacher/subscriptions","organizations_url":"https://api.github.com/users/the-teacher/orgs","repos_url":"https://api.github.com/users/the-teacher/repos","events_url":"https://api.github.com/users/the-teacher/events{/privacy}","received_events_url":"https://api.github.com/users/the-teacher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-16T12:22:24Z","updated_at":"2015-12-17T18:07:21Z","closed_at":null,"body":"@aleksposte твои задачи\r\n\r\n0. Научиться запускать типограф из ноды напрямую. Посмотреть какой код это требует\r\n0. Узнать как выполнять в руби скрипте консольную команду \r\n0. Устроить все так, что бы в руби скрипте формировался кусок JS и выполнялся в консоли через возможности руби по запуску консольных команд\r\n0. Научится получать результат выполнения консольной команды и выводить это результат в терминал. В идеале сохранять в новый файл"},"comment":{"url":"https://api.github.com/repos/aleksposte/typograf/issues/comments/165534341","html_url":"https://github.com/aleksposte/typograf/issues/17#issuecomment-165534341","issue_url":"https://api.github.com/repos/aleksposte/typograf/issues/17","id":165534341,"user":{"login":"the-teacher","id":496713,"avatar_url":"https://avatars.githubusercontent.com/u/496713?v=3","gravatar_id":"","url":"https://api.github.com/users/the-teacher","html_url":"https://github.com/the-teacher","followers_url":"https://api.github.com/users/the-teacher/followers","following_url":"https://api.github.com/users/the-teacher/following{/other_user}","gists_url":"https://api.github.com/users/the-teacher/gists{/gist_id}","starred_url":"https://api.github.com/users/the-teacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-teacher/subscriptions","organizations_url":"https://api.github.com/users/the-teacher/orgs","repos_url":"https://api.github.com/users/the-teacher/repos","events_url":"https://api.github.com/users/the-teacher/events{/privacy}","received_events_url":"https://api.github.com/users/the-teacher/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T18:07:21Z","updated_at":"2015-12-17T18:07:21Z","body":"@aleksposte \r\n```\r\nsystem(\"typograf -l ru tests/test_2.txt > tests/outpout_file.txt\")\r\n```\r\nпринципиально верно. Как прочитать в руби файл и поместить контент в файл - наука не великая. Дальше просто сделаешь интерполяцию переменной с текстом вместо `tests/test_2.txt` а результат обработки заберешь из `system`. В простейшем случае так. Если что то не сработает, то можно будет создать пару временных файлов и передать  пути к ним  в `system`"}}