{"action":"created","comment":{"url":"https://api.github.com/repos/asteris-llc/converge/pulls/comments/86816439","pull_request_review_id":7455206,"id":86816439,"diff_hunk":"@@ -0,0 +1,53 @@\n+// Copyright © 2016 Asteris, LLC\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+package apt\n+\n+import (\n+\t\"github.com/asteris-llc/converge/load/registry\"\n+\t\"github.com/asteris-llc/converge/resource\"\n+\t\"github.com/asteris-llc/converge/resource/package\"\n+\t\"golang.org/x/net/context\"\n+)\n+\n+// Preparer for Debian Package\n+//\n+// Apt Package manages system packages with `apt` and `dpkg`. It assumes that\n+// both `apt` and `dpkg` are installed on the system, and that the user has\n+// permissions to install, remove, and query packages.\n+type Preparer struct {\n+\t// Name of the package or package group.\n+\tName string `hcl:\"name\" required:\"true\" `\n+\n+\t// State of the package. Present means the package will be installed if\n+\t// missing; Absent means the package will be uninstalled if present.\n+\tState pkg.State `hcl:\"state\" valid_values:\"present,absent\"`\n+}\n+\n+// Prepare a new package\n+func (p *Preparer) Prepare(ctx context.Context, render resource.Renderer) (resource.Task, error) {\n+\tif p.State == \"\" {","path":"resource/package/apt/preparer.go","position":null,"original_position":40,"commit_id":"da74c5c8c943b93254c28d37c14e9b1137b3722d","original_commit_id":"1a41999d0730a51fb8982c3c51db5b07a4ac99de","user":{"login":"stevendborrelli","id":414702,"avatar_url":"https://avatars.githubusercontent.com/u/414702?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendborrelli","html_url":"https://github.com/stevendborrelli","followers_url":"https://api.github.com/users/stevendborrelli/followers","following_url":"https://api.github.com/users/stevendborrelli/following{/other_user}","gists_url":"https://api.github.com/users/stevendborrelli/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendborrelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendborrelli/subscriptions","organizations_url":"https://api.github.com/users/stevendborrelli/orgs","repos_url":"https://api.github.com/users/stevendborrelli/repos","events_url":"https://api.github.com/users/stevendborrelli/events{/privacy}","received_events_url":"https://api.github.com/users/stevendborrelli/received_events","type":"User","site_admin":false},"body":"added","created_at":"2016-11-07T16:48:23Z","updated_at":"2016-11-07T16:48:23Z","html_url":"https://github.com/asteris-llc/converge/pull/461#discussion_r86816439","pull_request_url":"https://api.github.com/repos/asteris-llc/converge/pulls/461","_links":{"self":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/comments/86816439"},"html":{"href":"https://github.com/asteris-llc/converge/pull/461#discussion_r86816439"},"pull_request":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/461"}}},"pull_request":{"url":"https://api.github.com/repos/asteris-llc/converge/pulls/461","id":91870018,"html_url":"https://github.com/asteris-llc/converge/pull/461","diff_url":"https://github.com/asteris-llc/converge/pull/461.diff","patch_url":"https://github.com/asteris-llc/converge/pull/461.patch","issue_url":"https://api.github.com/repos/asteris-llc/converge/issues/461","number":461,"state":"open","locked":false,"title":"Feature/apt package","user":{"login":"stevendborrelli","id":414702,"avatar_url":"https://avatars.githubusercontent.com/u/414702?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendborrelli","html_url":"https://github.com/stevendborrelli","followers_url":"https://api.github.com/users/stevendborrelli/followers","following_url":"https://api.github.com/users/stevendborrelli/following{/other_user}","gists_url":"https://api.github.com/users/stevendborrelli/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendborrelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendborrelli/subscriptions","organizations_url":"https://api.github.com/users/stevendborrelli/orgs","repos_url":"https://api.github.com/users/stevendborrelli/repos","events_url":"https://api.github.com/users/stevendborrelli/events{/privacy}","received_events_url":"https://api.github.com/users/stevendborrelli/received_events","type":"User","site_admin":false},"body":"- adds ability to install/remove debian packages\r\n- refactors some of the code in the package resource to be shared","created_at":"2016-11-01T21:45:28Z","updated_at":"2016-11-07T16:48:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"361ad8daa51f6bdf74a0d8984367f1a0e6d6f667","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/asteris-llc/converge/milestones/9","html_url":"https://github.com/asteris-llc/converge/milestones/0.4.0","labels_url":"https://api.github.com/repos/asteris-llc/converge/milestones/9/labels","id":2070892,"number":9,"title":"0.4.0","description":"","creator":{"login":"stevendborrelli","id":414702,"avatar_url":"https://avatars.githubusercontent.com/u/414702?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendborrelli","html_url":"https://github.com/stevendborrelli","followers_url":"https://api.github.com/users/stevendborrelli/followers","following_url":"https://api.github.com/users/stevendborrelli/following{/other_user}","gists_url":"https://api.github.com/users/stevendborrelli/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendborrelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendborrelli/subscriptions","organizations_url":"https://api.github.com/users/stevendborrelli/orgs","repos_url":"https://api.github.com/users/stevendborrelli/repos","events_url":"https://api.github.com/users/stevendborrelli/events{/privacy}","received_events_url":"https://api.github.com/users/stevendborrelli/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":16,"state":"open","created_at":"2016-10-14T17:52:24Z","updated_at":"2016-11-07T15:31:04Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/asteris-llc/converge/pulls/461/commits","review_comments_url":"https://api.github.com/repos/asteris-llc/converge/pulls/461/comments","review_comment_url":"https://api.github.com/repos/asteris-llc/converge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asteris-llc/converge/issues/461/comments","statuses_url":"https://api.github.com/repos/asteris-llc/converge/statuses/da74c5c8c943b93254c28d37c14e9b1137b3722d","head":{"label":"asteris-llc:feature/apt-package","ref":"feature/apt-package","sha":"da74c5c8c943b93254c28d37c14e9b1137b3722d","user":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"repo":{"id":59234611,"name":"converge","full_name":"asteris-llc/converge","owner":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/asteris-llc/converge","description":"An easy and powerful configuration management system.","fork":false,"url":"https://api.github.com/repos/asteris-llc/converge","forks_url":"https://api.github.com/repos/asteris-llc/converge/forks","keys_url":"https://api.github.com/repos/asteris-llc/converge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asteris-llc/converge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asteris-llc/converge/teams","hooks_url":"https://api.github.com/repos/asteris-llc/converge/hooks","issue_events_url":"https://api.github.com/repos/asteris-llc/converge/issues/events{/number}","events_url":"https://api.github.com/repos/asteris-llc/converge/events","assignees_url":"https://api.github.com/repos/asteris-llc/converge/assignees{/user}","branches_url":"https://api.github.com/repos/asteris-llc/converge/branches{/branch}","tags_url":"https://api.github.com/repos/asteris-llc/converge/tags","blobs_url":"https://api.github.com/repos/asteris-llc/converge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asteris-llc/converge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asteris-llc/converge/git/refs{/sha}","trees_url":"https://api.github.com/repos/asteris-llc/converge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asteris-llc/converge/statuses/{sha}","languages_url":"https://api.github.com/repos/asteris-llc/converge/languages","stargazers_url":"https://api.github.com/repos/asteris-llc/converge/stargazers","contributors_url":"https://api.github.com/repos/asteris-llc/converge/contributors","subscribers_url":"https://api.github.com/repos/asteris-llc/converge/subscribers","subscription_url":"https://api.github.com/repos/asteris-llc/converge/subscription","commits_url":"https://api.github.com/repos/asteris-llc/converge/commits{/sha}","git_commits_url":"https://api.github.com/repos/asteris-llc/converge/git/commits{/sha}","comments_url":"https://api.github.com/repos/asteris-llc/converge/comments{/number}","issue_comment_url":"https://api.github.com/repos/asteris-llc/converge/issues/comments{/number}","contents_url":"https://api.github.com/repos/asteris-llc/converge/contents/{+path}","compare_url":"https://api.github.com/repos/asteris-llc/converge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asteris-llc/converge/merges","archive_url":"https://api.github.com/repos/asteris-llc/converge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asteris-llc/converge/downloads","issues_url":"https://api.github.com/repos/asteris-llc/converge/issues{/number}","pulls_url":"https://api.github.com/repos/asteris-llc/converge/pulls{/number}","milestones_url":"https://api.github.com/repos/asteris-llc/converge/milestones{/number}","notifications_url":"https://api.github.com/repos/asteris-llc/converge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asteris-llc/converge/labels{/name}","releases_url":"https://api.github.com/repos/asteris-llc/converge/releases{/id}","deployments_url":"https://api.github.com/repos/asteris-llc/converge/deployments","created_at":"2016-05-19T19:11:26Z","updated_at":"2016-11-05T11:40:05Z","pushed_at":"2016-11-07T16:47:45Z","git_url":"git://github.com/asteris-llc/converge.git","ssh_url":"git@github.com:asteris-llc/converge.git","clone_url":"https://github.com/asteris-llc/converge.git","svn_url":"https://github.com/asteris-llc/converge","homepage":"converge.aster.is","size":41827,"stargazers_count":16,"watchers_count":16,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":93,"forks":8,"open_issues":93,"watchers":16,"default_branch":"master"}},"base":{"label":"asteris-llc:master","ref":"master","sha":"b72d341a33f2efce24f3aa53d1fa7d248e487ebe","user":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"repo":{"id":59234611,"name":"converge","full_name":"asteris-llc/converge","owner":{"login":"asteris-llc","id":6193478,"avatar_url":"https://avatars.githubusercontent.com/u/6193478?v=3","gravatar_id":"","url":"https://api.github.com/users/asteris-llc","html_url":"https://github.com/asteris-llc","followers_url":"https://api.github.com/users/asteris-llc/followers","following_url":"https://api.github.com/users/asteris-llc/following{/other_user}","gists_url":"https://api.github.com/users/asteris-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/asteris-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteris-llc/subscriptions","organizations_url":"https://api.github.com/users/asteris-llc/orgs","repos_url":"https://api.github.com/users/asteris-llc/repos","events_url":"https://api.github.com/users/asteris-llc/events{/privacy}","received_events_url":"https://api.github.com/users/asteris-llc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/asteris-llc/converge","description":"An easy and powerful configuration management system.","fork":false,"url":"https://api.github.com/repos/asteris-llc/converge","forks_url":"https://api.github.com/repos/asteris-llc/converge/forks","keys_url":"https://api.github.com/repos/asteris-llc/converge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asteris-llc/converge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asteris-llc/converge/teams","hooks_url":"https://api.github.com/repos/asteris-llc/converge/hooks","issue_events_url":"https://api.github.com/repos/asteris-llc/converge/issues/events{/number}","events_url":"https://api.github.com/repos/asteris-llc/converge/events","assignees_url":"https://api.github.com/repos/asteris-llc/converge/assignees{/user}","branches_url":"https://api.github.com/repos/asteris-llc/converge/branches{/branch}","tags_url":"https://api.github.com/repos/asteris-llc/converge/tags","blobs_url":"https://api.github.com/repos/asteris-llc/converge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asteris-llc/converge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asteris-llc/converge/git/refs{/sha}","trees_url":"https://api.github.com/repos/asteris-llc/converge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asteris-llc/converge/statuses/{sha}","languages_url":"https://api.github.com/repos/asteris-llc/converge/languages","stargazers_url":"https://api.github.com/repos/asteris-llc/converge/stargazers","contributors_url":"https://api.github.com/repos/asteris-llc/converge/contributors","subscribers_url":"https://api.github.com/repos/asteris-llc/converge/subscribers","subscription_url":"https://api.github.com/repos/asteris-llc/converge/subscription","commits_url":"https://api.github.com/repos/asteris-llc/converge/commits{/sha}","git_commits_url":"https://api.github.com/repos/asteris-llc/converge/git/commits{/sha}","comments_url":"https://api.github.com/repos/asteris-llc/converge/comments{/number}","issue_comment_url":"https://api.github.com/repos/asteris-llc/converge/issues/comments{/number}","contents_url":"https://api.github.com/repos/asteris-llc/converge/contents/{+path}","compare_url":"https://api.github.com/repos/asteris-llc/converge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asteris-llc/converge/merges","archive_url":"https://api.github.com/repos/asteris-llc/converge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asteris-llc/converge/downloads","issues_url":"https://api.github.com/repos/asteris-llc/converge/issues{/number}","pulls_url":"https://api.github.com/repos/asteris-llc/converge/pulls{/number}","milestones_url":"https://api.github.com/repos/asteris-llc/converge/milestones{/number}","notifications_url":"https://api.github.com/repos/asteris-llc/converge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asteris-llc/converge/labels{/name}","releases_url":"https://api.github.com/repos/asteris-llc/converge/releases{/id}","deployments_url":"https://api.github.com/repos/asteris-llc/converge/deployments","created_at":"2016-05-19T19:11:26Z","updated_at":"2016-11-05T11:40:05Z","pushed_at":"2016-11-07T16:47:45Z","git_url":"git://github.com/asteris-llc/converge.git","ssh_url":"git@github.com:asteris-llc/converge.git","clone_url":"https://github.com/asteris-llc/converge.git","svn_url":"https://github.com/asteris-llc/converge","homepage":"converge.aster.is","size":41827,"stargazers_count":16,"watchers_count":16,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":93,"forks":8,"open_issues":93,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/461"},"html":{"href":"https://github.com/asteris-llc/converge/pull/461"},"issue":{"href":"https://api.github.com/repos/asteris-llc/converge/issues/461"},"comments":{"href":"https://api.github.com/repos/asteris-llc/converge/issues/461/comments"},"review_comments":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/461/comments"},"review_comment":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asteris-llc/converge/pulls/461/commits"},"statuses":{"href":"https://api.github.com/repos/asteris-llc/converge/statuses/da74c5c8c943b93254c28d37c14e9b1137b3722d"}}}}
{"actor":{"display_login":"stevendborrelli"}}