{"action":"created","comment":{"url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/comments/167271343","pull_request_review_id":95468308,"id":167271343,"diff_hunk":"@@ -211,6 +234,49 @@ func (p *Provisioner) debug() string {\n \treturn \"\"\n }\n \n+func (p *Provisioner) sslFlag(cmdType string) string {\n+\tif p.config.SkipSSLChk == true {\n+\t\tswitch(cmdType) {\n+\t\tcase \"curl\":\n+\t\t\treturn \"-k\"\n+\t\tcase \"wget\":\n+\t\t\treturn \"--no-check-certificate\"\n+\t\tdefault:\n+\t\t\treturn \"\"\n+\t\t}\n+\t}\n+\treturn \"\"\n+}\n+\n+// enable sudo if required\n+func (p *Provisioner) enableSudo() string {\n+\tif p.config.UseSudo == true {","path":"packer-provisioner-goss.go","position":91,"original_position":91,"commit_id":"9a68738c4f1c42a3bc8a127d2db29b74110f75a5","original_commit_id":"9a68738c4f1c42a3bc8a127d2db29b74110f75a5","user":{"login":"fishnix","id":508237,"avatar_url":"https://avatars1.githubusercontent.com/u/508237?v=4","gravatar_id":"","url":"https://api.github.com/users/fishnix","html_url":"https://github.com/fishnix","followers_url":"https://api.github.com/users/fishnix/followers","following_url":"https://api.github.com/users/fishnix/following{/other_user}","gists_url":"https://api.github.com/users/fishnix/gists{/gist_id}","starred_url":"https://api.github.com/users/fishnix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishnix/subscriptions","organizations_url":"https://api.github.com/users/fishnix/orgs","repos_url":"https://api.github.com/users/fishnix/repos","events_url":"https://api.github.com/users/fishnix/events{/privacy}","received_events_url":"https://api.github.com/users/fishnix/received_events","type":"User","site_admin":false},"body":"`if p.config.UseSudo {`","created_at":"2018-02-09T16:10:49Z","updated_at":"2018-02-09T16:14:05Z","html_url":"https://github.com/YaleUniversity/packer-provisioner-goss/pull/7#discussion_r167271343","pull_request_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/comments/167271343"},"html":{"href":"https://github.com/YaleUniversity/packer-provisioner-goss/pull/7#discussion_r167271343"},"pull_request":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7","id":165045625,"html_url":"https://github.com/YaleUniversity/packer-provisioner-goss/pull/7","diff_url":"https://github.com/YaleUniversity/packer-provisioner-goss/pull/7.diff","patch_url":"https://github.com/YaleUniversity/packer-provisioner-goss/pull/7.patch","issue_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/issues/7","number":7,"state":"open","locked":false,"title":"Update packer-provisioner-goss.go","user":{"login":"vamegh","id":656811,"avatar_url":"https://avatars2.githubusercontent.com/u/656811?v=4","gravatar_id":"","url":"https://api.github.com/users/vamegh","html_url":"https://github.com/vamegh","followers_url":"https://api.github.com/users/vamegh/followers","following_url":"https://api.github.com/users/vamegh/following{/other_user}","gists_url":"https://api.github.com/users/vamegh/gists{/gist_id}","starred_url":"https://api.github.com/users/vamegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vamegh/subscriptions","organizations_url":"https://api.github.com/users/vamegh/orgs","repos_url":"https://api.github.com/users/vamegh/repos","events_url":"https://api.github.com/users/vamegh/events{/privacy}","received_events_url":"https://api.github.com/users/vamegh/received_events","type":"User","site_admin":false},"body":"Custom Gossfile suport (the --gossfile flag)\r\nTests now supports uploading directories - ignore support disabled (for now)\r\nUsername and Password for auth to download goss from custom authed locations\r\nSsl cert check disable option - for internal services using self-signed certs\r\n\r\n\tmodified:   README.md\r\n\tmodified:   packer-provisioner-goss.go","created_at":"2018-01-25T07:19:04Z","updated_at":"2018-02-09T16:14:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ba0a3b3a6ea3c282ed1513a6a1c4363c39132a8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7/commits","review_comments_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7/comments","review_comment_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/issues/7/comments","statuses_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/statuses/9a68738c4f1c42a3bc8a127d2db29b74110f75a5","head":{"label":"vamegh:goss-auth-ssl-download-support","ref":"goss-auth-ssl-download-support","sha":"9a68738c4f1c42a3bc8a127d2db29b74110f75a5","user":{"login":"vamegh","id":656811,"avatar_url":"https://avatars2.githubusercontent.com/u/656811?v=4","gravatar_id":"","url":"https://api.github.com/users/vamegh","html_url":"https://github.com/vamegh","followers_url":"https://api.github.com/users/vamegh/followers","following_url":"https://api.github.com/users/vamegh/following{/other_user}","gists_url":"https://api.github.com/users/vamegh/gists{/gist_id}","starred_url":"https://api.github.com/users/vamegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vamegh/subscriptions","organizations_url":"https://api.github.com/users/vamegh/orgs","repos_url":"https://api.github.com/users/vamegh/repos","events_url":"https://api.github.com/users/vamegh/events{/privacy}","received_events_url":"https://api.github.com/users/vamegh/received_events","type":"User","site_admin":false},"repo":{"id":118601617,"name":"packer-provisioner-goss","full_name":"vamegh/packer-provisioner-goss","owner":{"login":"vamegh","id":656811,"avatar_url":"https://avatars2.githubusercontent.com/u/656811?v=4","gravatar_id":"","url":"https://api.github.com/users/vamegh","html_url":"https://github.com/vamegh","followers_url":"https://api.github.com/users/vamegh/followers","following_url":"https://api.github.com/users/vamegh/following{/other_user}","gists_url":"https://api.github.com/users/vamegh/gists{/gist_id}","starred_url":"https://api.github.com/users/vamegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vamegh/subscriptions","organizations_url":"https://api.github.com/users/vamegh/orgs","repos_url":"https://api.github.com/users/vamegh/repos","events_url":"https://api.github.com/users/vamegh/events{/privacy}","received_events_url":"https://api.github.com/users/vamegh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vamegh/packer-provisioner-goss","description":"Goss Provisioner for Packer","fork":true,"url":"https://api.github.com/repos/vamegh/packer-provisioner-goss","forks_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/forks","keys_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/teams","hooks_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/hooks","issue_events_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/issues/events{/number}","events_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/events","assignees_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/assignees{/user}","branches_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/branches{/branch}","tags_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/tags","blobs_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/git/refs{/sha}","trees_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/statuses/{sha}","languages_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/languages","stargazers_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/stargazers","contributors_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/contributors","subscribers_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/subscribers","subscription_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/subscription","commits_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/commits{/sha}","git_commits_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/git/commits{/sha}","comments_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/comments{/number}","issue_comment_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/issues/comments{/number}","contents_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/contents/{+path}","compare_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/merges","archive_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/downloads","issues_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/issues{/number}","pulls_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/pulls{/number}","milestones_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/milestones{/number}","notifications_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/labels{/name}","releases_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/releases{/id}","deployments_url":"https://api.github.com/repos/vamegh/packer-provisioner-goss/deployments","created_at":"2018-01-23T11:33:30Z","updated_at":"2018-01-23T11:33:31Z","pushed_at":"2018-01-26T17:43:47Z","git_url":"git://github.com/vamegh/packer-provisioner-goss.git","ssh_url":"git@github.com:vamegh/packer-provisioner-goss.git","clone_url":"https://github.com/vamegh/packer-provisioner-goss.git","svn_url":"https://github.com/vamegh/packer-provisioner-goss","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"YaleUniversity:master","ref":"master","sha":"ef964c3d1b11a396023da10ed8cd6f4df77b5d20","user":{"login":"YaleUniversity","id":5084400,"avatar_url":"https://avatars0.githubusercontent.com/u/5084400?v=4","gravatar_id":"","url":"https://api.github.com/users/YaleUniversity","html_url":"https://github.com/YaleUniversity","followers_url":"https://api.github.com/users/YaleUniversity/followers","following_url":"https://api.github.com/users/YaleUniversity/following{/other_user}","gists_url":"https://api.github.com/users/YaleUniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleUniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleUniversity/subscriptions","organizations_url":"https://api.github.com/users/YaleUniversity/orgs","repos_url":"https://api.github.com/users/YaleUniversity/repos","events_url":"https://api.github.com/users/YaleUniversity/events{/privacy}","received_events_url":"https://api.github.com/users/YaleUniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":91634817,"name":"packer-provisioner-goss","full_name":"YaleUniversity/packer-provisioner-goss","owner":{"login":"YaleUniversity","id":5084400,"avatar_url":"https://avatars0.githubusercontent.com/u/5084400?v=4","gravatar_id":"","url":"https://api.github.com/users/YaleUniversity","html_url":"https://github.com/YaleUniversity","followers_url":"https://api.github.com/users/YaleUniversity/followers","following_url":"https://api.github.com/users/YaleUniversity/following{/other_user}","gists_url":"https://api.github.com/users/YaleUniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleUniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleUniversity/subscriptions","organizations_url":"https://api.github.com/users/YaleUniversity/orgs","repos_url":"https://api.github.com/users/YaleUniversity/repos","events_url":"https://api.github.com/users/YaleUniversity/events{/privacy}","received_events_url":"https://api.github.com/users/YaleUniversity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YaleUniversity/packer-provisioner-goss","description":"Goss Provisioner for Packer","fork":false,"url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss","forks_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/forks","keys_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/teams","hooks_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/hooks","issue_events_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/issues/events{/number}","events_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/events","assignees_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/assignees{/user}","branches_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/branches{/branch}","tags_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/tags","blobs_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/git/refs{/sha}","trees_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/statuses/{sha}","languages_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/languages","stargazers_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/stargazers","contributors_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/contributors","subscribers_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/subscribers","subscription_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/subscription","commits_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/commits{/sha}","git_commits_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/git/commits{/sha}","comments_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/comments{/number}","issue_comment_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/issues/comments{/number}","contents_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/contents/{+path}","compare_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/merges","archive_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/downloads","issues_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/issues{/number}","pulls_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls{/number}","milestones_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/milestones{/number}","notifications_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/labels{/name}","releases_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/releases{/id}","deployments_url":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/deployments","created_at":"2017-05-18T01:18:36Z","updated_at":"2018-02-05T17:22:52Z","pushed_at":"2018-01-26T17:43:48Z","git_url":"git://github.com/YaleUniversity/packer-provisioner-goss.git","ssh_url":"git@github.com:YaleUniversity/packer-provisioner-goss.git","clone_url":"https://github.com/YaleUniversity/packer-provisioner-goss.git","svn_url":"https://github.com/YaleUniversity/packer-provisioner-goss","homepage":null,"size":7,"stargazers_count":19,"watchers_count":19,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":3,"open_issues":5,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7"},"html":{"href":"https://github.com/YaleUniversity/packer-provisioner-goss/pull/7"},"issue":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/issues/7"},"comments":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/YaleUniversity/packer-provisioner-goss/statuses/9a68738c4f1c42a3bc8a127d2db29b74110f75a5"}},"author_association":"NONE"}}
{"actor":{"display_login":"fishnix"}}