{"action":"created","comment":{"url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/comments/23639896","id":23639896,"diff_hunk":"@@ -0,0 +1,17 @@\n+module JobBuilder\n+  class FromTemplate\n+","path":"app/builders/job_builder/from_template.rb","position":3,"original_position":3,"commit_id":"0bdd13a88671c5f2720cef3438920e764ce55bb7","original_commit_id":"0bdd13a88671c5f2720cef3438920e764ce55bb7","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at body beginning.","created_at":"2015-01-27T20:28:00Z","updated_at":"2015-01-27T20:28:00Z","html_url":"https://github.com/CenturyLinkLabs/panamax-api/pull/261#discussion_r23639896","pull_request_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261","_links":{"self":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/comments/23639896"},"html":{"href":"https://github.com/CenturyLinkLabs/panamax-api/pull/261#discussion_r23639896"},"pull_request":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261"}}},"pull_request":{"url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261","id":28044930,"html_url":"https://github.com/CenturyLinkLabs/panamax-api/pull/261","diff_url":"https://github.com/CenturyLinkLabs/panamax-api/pull/261.diff","patch_url":"https://github.com/CenturyLinkLabs/panamax-api/pull/261.patch","issue_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/261","number":261,"state":"open","locked":false,"title":"Allow Panamax to execute jobs via Dray","user":{"login":"dharmamike","id":531149,"avatar_url":"https://avatars.githubusercontent.com/u/531149?v=3","gravatar_id":"","url":"https://api.github.com/users/dharmamike","html_url":"https://github.com/dharmamike","followers_url":"https://api.github.com/users/dharmamike/followers","following_url":"https://api.github.com/users/dharmamike/following{/other_user}","gists_url":"https://api.github.com/users/dharmamike/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmamike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmamike/subscriptions","organizations_url":"https://api.github.com/users/dharmamike/orgs","repos_url":"https://api.github.com/users/dharmamike/repos","events_url":"https://api.github.com/users/dharmamike/events{/privacy}","received_events_url":"https://api.github.com/users/dharmamike/received_events","type":"User","site_admin":false},"body":"This pull request introduces several new items into Panamax, all around the concept of running jobs via CenturyLinkLabs/Dray.  \r\n\r\nWorkflows to be executed are stored in YAML template files read in as `JobTemplate` subclass instances with the `panamax:job_templates:load` rake task.  Currently the only subclass is `ClusterJobTemplate`. The templates are parsed so that each step of the workflow is added as a `JobTemplateStep` for that `JobTemplate`.\r\n\r\nBy POSTing to the new `/jobs` route, a `Job` can be created from a `JobTemplate` and subsequently posted to a running Dray service.  The Dray service will return a job key, and subsequent GET requests to the `/jobs/:key` route will return details of the job by fetching the job data from Dray.  ","created_at":"2015-01-26T17:38:11Z","updated_at":"2015-01-27T20:28:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09fc1dc18ebc3e1d1f05575d86422893bfc99971","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261/commits","review_comments_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261/comments","review_comment_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/261/comments","statuses_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/statuses/0bdd13a88671c5f2720cef3438920e764ce55bb7","head":{"label":"CenturyLinkLabs:feature/cluster-jobs","ref":"feature/cluster-jobs","sha":"0bdd13a88671c5f2720cef3438920e764ce55bb7","user":{"login":"CenturyLinkLabs","id":6453752,"avatar_url":"https://avatars.githubusercontent.com/u/6453752?v=3","gravatar_id":"","url":"https://api.github.com/users/CenturyLinkLabs","html_url":"https://github.com/CenturyLinkLabs","followers_url":"https://api.github.com/users/CenturyLinkLabs/followers","following_url":"https://api.github.com/users/CenturyLinkLabs/following{/other_user}","gists_url":"https://api.github.com/users/CenturyLinkLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/CenturyLinkLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenturyLinkLabs/subscriptions","organizations_url":"https://api.github.com/users/CenturyLinkLabs/orgs","repos_url":"https://api.github.com/users/CenturyLinkLabs/repos","events_url":"https://api.github.com/users/CenturyLinkLabs/events{/privacy}","received_events_url":"https://api.github.com/users/CenturyLinkLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":18078605,"name":"panamax-api","full_name":"CenturyLinkLabs/panamax-api","owner":{"login":"CenturyLinkLabs","id":6453752,"avatar_url":"https://avatars.githubusercontent.com/u/6453752?v=3","gravatar_id":"","url":"https://api.github.com/users/CenturyLinkLabs","html_url":"https://github.com/CenturyLinkLabs","followers_url":"https://api.github.com/users/CenturyLinkLabs/followers","following_url":"https://api.github.com/users/CenturyLinkLabs/following{/other_user}","gists_url":"https://api.github.com/users/CenturyLinkLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/CenturyLinkLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenturyLinkLabs/subscriptions","organizations_url":"https://api.github.com/users/CenturyLinkLabs/orgs","repos_url":"https://api.github.com/users/CenturyLinkLabs/repos","events_url":"https://api.github.com/users/CenturyLinkLabs/events{/privacy}","received_events_url":"https://api.github.com/users/CenturyLinkLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenturyLinkLabs/panamax-api","description":"The Local Panamax Agent","fork":false,"url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api","forks_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/forks","keys_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/teams","hooks_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/hooks","issue_events_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/events{/number}","events_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/events","assignees_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/assignees{/user}","branches_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/branches{/branch}","tags_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/tags","blobs_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/statuses/{sha}","languages_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/languages","stargazers_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/stargazers","contributors_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/contributors","subscribers_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/subscribers","subscription_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/subscription","commits_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/contents/{+path}","compare_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/merges","archive_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/downloads","issues_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues{/number}","pulls_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls{/number}","milestones_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/milestones{/number}","notifications_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/labels{/name}","releases_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/releases{/id}","created_at":"2014-03-24T20:59:11Z","updated_at":"2015-01-23T09:53:19Z","pushed_at":"2015-01-27T20:27:47Z","git_url":"git://github.com/CenturyLinkLabs/panamax-api.git","ssh_url":"git@github.com:CenturyLinkLabs/panamax-api.git","clone_url":"https://github.com/CenturyLinkLabs/panamax-api.git","svn_url":"https://github.com/CenturyLinkLabs/panamax-api","homepage":"http://panamax.io","size":4519,"stargazers_count":56,"watchers_count":56,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":2,"forks":22,"open_issues":2,"watchers":56,"default_branch":"master"}},"base":{"label":"CenturyLinkLabs:master","ref":"master","sha":"c461c3d3886cf49eda0a995582972ff82316c550","user":{"login":"CenturyLinkLabs","id":6453752,"avatar_url":"https://avatars.githubusercontent.com/u/6453752?v=3","gravatar_id":"","url":"https://api.github.com/users/CenturyLinkLabs","html_url":"https://github.com/CenturyLinkLabs","followers_url":"https://api.github.com/users/CenturyLinkLabs/followers","following_url":"https://api.github.com/users/CenturyLinkLabs/following{/other_user}","gists_url":"https://api.github.com/users/CenturyLinkLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/CenturyLinkLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenturyLinkLabs/subscriptions","organizations_url":"https://api.github.com/users/CenturyLinkLabs/orgs","repos_url":"https://api.github.com/users/CenturyLinkLabs/repos","events_url":"https://api.github.com/users/CenturyLinkLabs/events{/privacy}","received_events_url":"https://api.github.com/users/CenturyLinkLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":18078605,"name":"panamax-api","full_name":"CenturyLinkLabs/panamax-api","owner":{"login":"CenturyLinkLabs","id":6453752,"avatar_url":"https://avatars.githubusercontent.com/u/6453752?v=3","gravatar_id":"","url":"https://api.github.com/users/CenturyLinkLabs","html_url":"https://github.com/CenturyLinkLabs","followers_url":"https://api.github.com/users/CenturyLinkLabs/followers","following_url":"https://api.github.com/users/CenturyLinkLabs/following{/other_user}","gists_url":"https://api.github.com/users/CenturyLinkLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/CenturyLinkLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenturyLinkLabs/subscriptions","organizations_url":"https://api.github.com/users/CenturyLinkLabs/orgs","repos_url":"https://api.github.com/users/CenturyLinkLabs/repos","events_url":"https://api.github.com/users/CenturyLinkLabs/events{/privacy}","received_events_url":"https://api.github.com/users/CenturyLinkLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenturyLinkLabs/panamax-api","description":"The Local Panamax Agent","fork":false,"url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api","forks_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/forks","keys_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/teams","hooks_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/hooks","issue_events_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/events{/number}","events_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/events","assignees_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/assignees{/user}","branches_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/branches{/branch}","tags_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/tags","blobs_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/statuses/{sha}","languages_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/languages","stargazers_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/stargazers","contributors_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/contributors","subscribers_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/subscribers","subscription_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/subscription","commits_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/contents/{+path}","compare_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/merges","archive_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/downloads","issues_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues{/number}","pulls_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls{/number}","milestones_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/milestones{/number}","notifications_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/labels{/name}","releases_url":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/releases{/id}","created_at":"2014-03-24T20:59:11Z","updated_at":"2015-01-23T09:53:19Z","pushed_at":"2015-01-27T20:27:47Z","git_url":"git://github.com/CenturyLinkLabs/panamax-api.git","ssh_url":"git@github.com:CenturyLinkLabs/panamax-api.git","clone_url":"https://github.com/CenturyLinkLabs/panamax-api.git","svn_url":"https://github.com/CenturyLinkLabs/panamax-api","homepage":"http://panamax.io","size":4519,"stargazers_count":56,"watchers_count":56,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":2,"forks":22,"open_issues":2,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261"},"html":{"href":"https://github.com/CenturyLinkLabs/panamax-api/pull/261"},"issue":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/261"},"comments":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/issues/261/comments"},"review_comments":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261/comments"},"review_comment":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/pulls/261/commits"},"statuses":{"href":"https://api.github.com/repos/CenturyLinkLabs/panamax-api/statuses/0bdd13a88671c5f2720cef3438920e764ce55bb7"}}}}