{"action":"created","comment":{"url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/comments/52731341","id":52731341,"diff_hunk":"@@ -0,0 +1,90 @@\n+package com.containersol.minimesos.cluster;\n+\n+import com.containersol.minimesos.MinimesosException;\n+import org.apache.commons.io.FileUtils;\n+import org.apache.commons.io.IOUtils;\n+import org.apache.log4j.Logger;\n+\n+import java.io.File;\n+import java.io.FileReader;\n+import java.io.IOException;\n+import java.nio.file.Files;\n+import java.nio.file.Paths;\n+\n+public class ClusterRepository {","path":"minimesos/src/main/java/com/containersol/minimesos/cluster/ClusterRepository.java","position":14,"original_position":14,"commit_id":"95126fa45834c2424dcbd33f49df2efa047b23db","original_commit_id":"95126fa45834c2424dcbd33f49df2efa047b23db","user":{"login":"sadovnikov","id":4749332,"avatar_url":"https://avatars.githubusercontent.com/u/4749332?v=3","gravatar_id":"","url":"https://api.github.com/users/sadovnikov","html_url":"https://github.com/sadovnikov","followers_url":"https://api.github.com/users/sadovnikov/followers","following_url":"https://api.github.com/users/sadovnikov/following{/other_user}","gists_url":"https://api.github.com/users/sadovnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/sadovnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sadovnikov/subscriptions","organizations_url":"https://api.github.com/users/sadovnikov/orgs","repos_url":"https://api.github.com/users/sadovnikov/repos","events_url":"https://api.github.com/users/sadovnikov/events{/privacy}","received_events_url":"https://api.github.com/users/sadovnikov/received_events","type":"User","site_admin":false},"body":"I truly don't want to sound like a priest. However, what if we try to javadoc our code","created_at":"2016-02-12T11:34:19Z","updated_at":"2016-02-12T11:34:19Z","html_url":"https://github.com/ContainerSolutions/minimesos/pull/221#discussion_r52731341","pull_request_url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221","_links":{"self":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/comments/52731341"},"html":{"href":"https://github.com/ContainerSolutions/minimesos/pull/221#discussion_r52731341"},"pull_request":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221"}}},"pull_request":{"url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221","id":58964818,"html_url":"https://github.com/ContainerSolutions/minimesos/pull/221","diff_url":"https://github.com/ContainerSolutions/minimesos/pull/221.diff","patch_url":"https://github.com/ContainerSolutions/minimesos/pull/221.patch","issue_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/221","number":221,"state":"open","locked":false,"title":"#220 WIP - Introduced ClusterRepository for loading and storing MesosCluster","user":{"login":"frankscholten","id":294372,"avatar_url":"https://avatars.githubusercontent.com/u/294372?v=3","gravatar_id":"","url":"https://api.github.com/users/frankscholten","html_url":"https://github.com/frankscholten","followers_url":"https://api.github.com/users/frankscholten/followers","following_url":"https://api.github.com/users/frankscholten/following{/other_user}","gists_url":"https://api.github.com/users/frankscholten/gists{/gist_id}","starred_url":"https://api.github.com/users/frankscholten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankscholten/subscriptions","organizations_url":"https://api.github.com/users/frankscholten/orgs","repos_url":"https://api.github.com/users/frankscholten/repos","events_url":"https://api.github.com/users/frankscholten/events{/privacy}","received_events_url":"https://api.github.com/users/frankscholten/received_events","type":"User","site_admin":false},"body":"* Moved command logic inside Command objects\r\n* Main only responsibility is cli args parsing\r\n* Added unit test for main\r\n* Added hashcode and equals for MesosCluster\r\n* Lots of little refactorings\r\n* TODO: Add info unit tests and test state and install commands\r\n* TODO: Test command hooks","created_at":"2016-02-10T22:31:14Z","updated_at":"2016-02-12T11:34:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f25ff2864a086eabf086c3d31e4b4328d989572","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221/commits","review_comments_url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221/comments","review_comment_url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/221/comments","statuses_url":"https://api.github.com/repos/ContainerSolutions/minimesos/statuses/95126fa45834c2424dcbd33f49df2efa047b23db","head":{"label":"ContainerSolutions:refactoring/write-cluster-id","ref":"refactoring/write-cluster-id","sha":"95126fa45834c2424dcbd33f49df2efa047b23db","user":{"login":"ContainerSolutions","id":9009380,"avatar_url":"https://avatars.githubusercontent.com/u/9009380?v=3","gravatar_id":"","url":"https://api.github.com/users/ContainerSolutions","html_url":"https://github.com/ContainerSolutions","followers_url":"https://api.github.com/users/ContainerSolutions/followers","following_url":"https://api.github.com/users/ContainerSolutions/following{/other_user}","gists_url":"https://api.github.com/users/ContainerSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/ContainerSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContainerSolutions/subscriptions","organizations_url":"https://api.github.com/users/ContainerSolutions/orgs","repos_url":"https://api.github.com/users/ContainerSolutions/repos","events_url":"https://api.github.com/users/ContainerSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/ContainerSolutions/received_events","type":"Organization","site_admin":false},"repo":{"id":38307113,"name":"minimesos","full_name":"ContainerSolutions/minimesos","owner":{"login":"ContainerSolutions","id":9009380,"avatar_url":"https://avatars.githubusercontent.com/u/9009380?v=3","gravatar_id":"","url":"https://api.github.com/users/ContainerSolutions","html_url":"https://github.com/ContainerSolutions","followers_url":"https://api.github.com/users/ContainerSolutions/followers","following_url":"https://api.github.com/users/ContainerSolutions/following{/other_user}","gists_url":"https://api.github.com/users/ContainerSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/ContainerSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContainerSolutions/subscriptions","organizations_url":"https://api.github.com/users/ContainerSolutions/orgs","repos_url":"https://api.github.com/users/ContainerSolutions/repos","events_url":"https://api.github.com/users/ContainerSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/ContainerSolutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ContainerSolutions/minimesos","description":"Testing infrastructure for Mesos frameworks","fork":false,"url":"https://api.github.com/repos/ContainerSolutions/minimesos","forks_url":"https://api.github.com/repos/ContainerSolutions/minimesos/forks","keys_url":"https://api.github.com/repos/ContainerSolutions/minimesos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ContainerSolutions/minimesos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ContainerSolutions/minimesos/teams","hooks_url":"https://api.github.com/repos/ContainerSolutions/minimesos/hooks","issue_events_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/events{/number}","events_url":"https://api.github.com/repos/ContainerSolutions/minimesos/events","assignees_url":"https://api.github.com/repos/ContainerSolutions/minimesos/assignees{/user}","branches_url":"https://api.github.com/repos/ContainerSolutions/minimesos/branches{/branch}","tags_url":"https://api.github.com/repos/ContainerSolutions/minimesos/tags","blobs_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/refs{/sha}","trees_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ContainerSolutions/minimesos/statuses/{sha}","languages_url":"https://api.github.com/repos/ContainerSolutions/minimesos/languages","stargazers_url":"https://api.github.com/repos/ContainerSolutions/minimesos/stargazers","contributors_url":"https://api.github.com/repos/ContainerSolutions/minimesos/contributors","subscribers_url":"https://api.github.com/repos/ContainerSolutions/minimesos/subscribers","subscription_url":"https://api.github.com/repos/ContainerSolutions/minimesos/subscription","commits_url":"https://api.github.com/repos/ContainerSolutions/minimesos/commits{/sha}","git_commits_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/commits{/sha}","comments_url":"https://api.github.com/repos/ContainerSolutions/minimesos/comments{/number}","issue_comment_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/comments{/number}","contents_url":"https://api.github.com/repos/ContainerSolutions/minimesos/contents/{+path}","compare_url":"https://api.github.com/repos/ContainerSolutions/minimesos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ContainerSolutions/minimesos/merges","archive_url":"https://api.github.com/repos/ContainerSolutions/minimesos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ContainerSolutions/minimesos/downloads","issues_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues{/number}","pulls_url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls{/number}","milestones_url":"https://api.github.com/repos/ContainerSolutions/minimesos/milestones{/number}","notifications_url":"https://api.github.com/repos/ContainerSolutions/minimesos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ContainerSolutions/minimesos/labels{/name}","releases_url":"https://api.github.com/repos/ContainerSolutions/minimesos/releases{/id}","deployments_url":"https://api.github.com/repos/ContainerSolutions/minimesos/deployments","created_at":"2015-06-30T12:08:26Z","updated_at":"2016-02-09T14:01:23Z","pushed_at":"2016-02-12T11:31:47Z","git_url":"git://github.com/ContainerSolutions/minimesos.git","ssh_url":"git@github.com:ContainerSolutions/minimesos.git","clone_url":"https://github.com/ContainerSolutions/minimesos.git","svn_url":"https://github.com/ContainerSolutions/minimesos","homepage":null,"size":4916,"stargazers_count":216,"watchers_count":216,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"open_issues_count":37,"forks":23,"open_issues":37,"watchers":216,"default_branch":"master"}},"base":{"label":"ContainerSolutions:master","ref":"master","sha":"a8d9450bcfb24951338c3622a6ab35317ae8e3e0","user":{"login":"ContainerSolutions","id":9009380,"avatar_url":"https://avatars.githubusercontent.com/u/9009380?v=3","gravatar_id":"","url":"https://api.github.com/users/ContainerSolutions","html_url":"https://github.com/ContainerSolutions","followers_url":"https://api.github.com/users/ContainerSolutions/followers","following_url":"https://api.github.com/users/ContainerSolutions/following{/other_user}","gists_url":"https://api.github.com/users/ContainerSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/ContainerSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContainerSolutions/subscriptions","organizations_url":"https://api.github.com/users/ContainerSolutions/orgs","repos_url":"https://api.github.com/users/ContainerSolutions/repos","events_url":"https://api.github.com/users/ContainerSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/ContainerSolutions/received_events","type":"Organization","site_admin":false},"repo":{"id":38307113,"name":"minimesos","full_name":"ContainerSolutions/minimesos","owner":{"login":"ContainerSolutions","id":9009380,"avatar_url":"https://avatars.githubusercontent.com/u/9009380?v=3","gravatar_id":"","url":"https://api.github.com/users/ContainerSolutions","html_url":"https://github.com/ContainerSolutions","followers_url":"https://api.github.com/users/ContainerSolutions/followers","following_url":"https://api.github.com/users/ContainerSolutions/following{/other_user}","gists_url":"https://api.github.com/users/ContainerSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/ContainerSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContainerSolutions/subscriptions","organizations_url":"https://api.github.com/users/ContainerSolutions/orgs","repos_url":"https://api.github.com/users/ContainerSolutions/repos","events_url":"https://api.github.com/users/ContainerSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/ContainerSolutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ContainerSolutions/minimesos","description":"Testing infrastructure for Mesos frameworks","fork":false,"url":"https://api.github.com/repos/ContainerSolutions/minimesos","forks_url":"https://api.github.com/repos/ContainerSolutions/minimesos/forks","keys_url":"https://api.github.com/repos/ContainerSolutions/minimesos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ContainerSolutions/minimesos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ContainerSolutions/minimesos/teams","hooks_url":"https://api.github.com/repos/ContainerSolutions/minimesos/hooks","issue_events_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/events{/number}","events_url":"https://api.github.com/repos/ContainerSolutions/minimesos/events","assignees_url":"https://api.github.com/repos/ContainerSolutions/minimesos/assignees{/user}","branches_url":"https://api.github.com/repos/ContainerSolutions/minimesos/branches{/branch}","tags_url":"https://api.github.com/repos/ContainerSolutions/minimesos/tags","blobs_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/refs{/sha}","trees_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ContainerSolutions/minimesos/statuses/{sha}","languages_url":"https://api.github.com/repos/ContainerSolutions/minimesos/languages","stargazers_url":"https://api.github.com/repos/ContainerSolutions/minimesos/stargazers","contributors_url":"https://api.github.com/repos/ContainerSolutions/minimesos/contributors","subscribers_url":"https://api.github.com/repos/ContainerSolutions/minimesos/subscribers","subscription_url":"https://api.github.com/repos/ContainerSolutions/minimesos/subscription","commits_url":"https://api.github.com/repos/ContainerSolutions/minimesos/commits{/sha}","git_commits_url":"https://api.github.com/repos/ContainerSolutions/minimesos/git/commits{/sha}","comments_url":"https://api.github.com/repos/ContainerSolutions/minimesos/comments{/number}","issue_comment_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/comments{/number}","contents_url":"https://api.github.com/repos/ContainerSolutions/minimesos/contents/{+path}","compare_url":"https://api.github.com/repos/ContainerSolutions/minimesos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ContainerSolutions/minimesos/merges","archive_url":"https://api.github.com/repos/ContainerSolutions/minimesos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ContainerSolutions/minimesos/downloads","issues_url":"https://api.github.com/repos/ContainerSolutions/minimesos/issues{/number}","pulls_url":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls{/number}","milestones_url":"https://api.github.com/repos/ContainerSolutions/minimesos/milestones{/number}","notifications_url":"https://api.github.com/repos/ContainerSolutions/minimesos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ContainerSolutions/minimesos/labels{/name}","releases_url":"https://api.github.com/repos/ContainerSolutions/minimesos/releases{/id}","deployments_url":"https://api.github.com/repos/ContainerSolutions/minimesos/deployments","created_at":"2015-06-30T12:08:26Z","updated_at":"2016-02-09T14:01:23Z","pushed_at":"2016-02-12T11:31:47Z","git_url":"git://github.com/ContainerSolutions/minimesos.git","ssh_url":"git@github.com:ContainerSolutions/minimesos.git","clone_url":"https://github.com/ContainerSolutions/minimesos.git","svn_url":"https://github.com/ContainerSolutions/minimesos","homepage":null,"size":4916,"stargazers_count":216,"watchers_count":216,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"open_issues_count":37,"forks":23,"open_issues":37,"watchers":216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221"},"html":{"href":"https://github.com/ContainerSolutions/minimesos/pull/221"},"issue":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/221"},"comments":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/issues/221/comments"},"review_comments":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221/comments"},"review_comment":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/pulls/221/commits"},"statuses":{"href":"https://api.github.com/repos/ContainerSolutions/minimesos/statuses/95126fa45834c2424dcbd33f49df2efa047b23db"}}}}