{"action":"created","comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/comments/31082384","id":31082384,"diff_hunk":"@@ -24,10 +24,21 @@\n # ::Chef::Recipe.send(:include, Chef::Mixin::PowershellOut)\n ::Chef::Resource::RubyBlock.send(:include, Chef::Mixin::PowershellOut)\n \n-powershell_script 'install chocolatey' do\n-  code \"iex ((new-object net.webclient).DownloadString('#{node['chocolatey']['Uri']}'))\"\n-  convert_boolean_return true\n-  not_if { ChocolateyHelpers.chocolatey_installed? }\n+if File.exist?('C:\\windows\\system32\\cmd.exe')\n+  arch = :x86_64\n+  cmd = 'C:\\windows\\system32\\cmd.exe'","path":"recipes/default.rb","position":null,"original_position":10,"commit_id":"84e135598bef151ef170e8fd18d4647d0acdecc9","original_commit_id":"4763a264a5a2f8da1a46b23ae06f1fe237d6790c","user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"body":"Yup. ;)","created_at":"2015-05-26T21:35:30Z","updated_at":"2015-05-26T21:35:30Z","html_url":"https://github.com/chocolatey/chocolatey-cookbook/pull/39#discussion_r31082384","pull_request_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/comments/31082384"},"html":{"href":"https://github.com/chocolatey/chocolatey-cookbook/pull/39#discussion_r31082384"},"pull_request":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39","id":36238474,"html_url":"https://github.com/chocolatey/chocolatey-cookbook/pull/39","diff_url":"https://github.com/chocolatey/chocolatey-cookbook/pull/39.diff","patch_url":"https://github.com/chocolatey/chocolatey-cookbook/pull/39.patch","issue_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/39","number":39,"state":"open","locked":false,"title":"fix for 64-bit chocolatey installs","user":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"body":"on 64-bit we need to invoke the install in a 64-bit environment.\r\n\r\nwe can use the interpreter flag to the chef script resource to do this.\r\n\r\ni had a dificult time beating powershell_script into submission.  invoking cmd\r\nto invoke powershell is a little gross, but the full path to the 64-bit\r\ncmd.exe also looks like it'll be less brittle than the powershell path that\r\nhad the version string embedded in it.\r\n\r\nfixes #38","created_at":"2015-05-26T19:47:54Z","updated_at":"2015-05-26T21:35:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ecbc21133e0fc225ec0b44a4d06e0d1094bfe2c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39/commits","review_comments_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39/comments","review_comment_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/39/comments","statuses_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/statuses/84e135598bef151ef170e8fd18d4647d0acdecc9","head":{"label":"lamont-granquist:lcg/64-bit-choco-install","ref":"lcg/64-bit-choco-install","sha":"84e135598bef151ef170e8fd18d4647d0acdecc9","user":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"repo":{"id":36319763,"name":"chocolatey-cookbook","full_name":"lamont-granquist/chocolatey-cookbook","owner":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lamont-granquist/chocolatey-cookbook","description":"Chef cookbook to install chocolatey and packages on Windows","fork":true,"url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook","forks_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/forks","keys_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/teams","hooks_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/hooks","issue_events_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/events","assignees_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/tags","blobs_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/languages","stargazers_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/stargazers","contributors_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/contributors","subscribers_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/subscribers","subscription_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/subscription","commits_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/merges","archive_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/downloads","issues_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/lamont-granquist/chocolatey-cookbook/releases{/id}","created_at":"2015-05-26T19:47:04Z","updated_at":"2015-05-26T19:47:05Z","pushed_at":"2015-05-26T21:05:24Z","git_url":"git://github.com/lamont-granquist/chocolatey-cookbook.git","ssh_url":"git@github.com:lamont-granquist/chocolatey-cookbook.git","clone_url":"https://github.com/lamont-granquist/chocolatey-cookbook.git","svn_url":"https://github.com/lamont-granquist/chocolatey-cookbook","homepage":null,"size":355,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chocolatey:master","ref":"master","sha":"57f9092ea134a98abfc3cda2bc1fa4176fa63b6e","user":{"login":"chocolatey","id":811025,"avatar_url":"https://avatars.githubusercontent.com/u/811025?v=3","gravatar_id":"","url":"https://api.github.com/users/chocolatey","html_url":"https://github.com/chocolatey","followers_url":"https://api.github.com/users/chocolatey/followers","following_url":"https://api.github.com/users/chocolatey/following{/other_user}","gists_url":"https://api.github.com/users/chocolatey/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolatey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolatey/subscriptions","organizations_url":"https://api.github.com/users/chocolatey/orgs","repos_url":"https://api.github.com/users/chocolatey/repos","events_url":"https://api.github.com/users/chocolatey/events{/privacy}","received_events_url":"https://api.github.com/users/chocolatey/received_events","type":"Organization","site_admin":false},"repo":{"id":6073097,"name":"chocolatey-cookbook","full_name":"chocolatey/chocolatey-cookbook","owner":{"login":"chocolatey","id":811025,"avatar_url":"https://avatars.githubusercontent.com/u/811025?v=3","gravatar_id":"","url":"https://api.github.com/users/chocolatey","html_url":"https://github.com/chocolatey","followers_url":"https://api.github.com/users/chocolatey/followers","following_url":"https://api.github.com/users/chocolatey/following{/other_user}","gists_url":"https://api.github.com/users/chocolatey/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolatey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolatey/subscriptions","organizations_url":"https://api.github.com/users/chocolatey/orgs","repos_url":"https://api.github.com/users/chocolatey/repos","events_url":"https://api.github.com/users/chocolatey/events{/privacy}","received_events_url":"https://api.github.com/users/chocolatey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chocolatey/chocolatey-cookbook","description":"Chef cookbook to install chocolatey and packages on Windows","fork":false,"url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook","forks_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/forks","keys_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/teams","hooks_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/hooks","issue_events_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/events","assignees_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/tags","blobs_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/languages","stargazers_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/stargazers","contributors_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/contributors","subscribers_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/subscribers","subscription_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/subscription","commits_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/merges","archive_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/downloads","issues_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/releases{/id}","created_at":"2012-10-04T09:17:00Z","updated_at":"2015-05-25T21:49:03Z","pushed_at":"2015-05-26T21:05:25Z","git_url":"git://github.com/chocolatey/chocolatey-cookbook.git","ssh_url":"git@github.com:chocolatey/chocolatey-cookbook.git","clone_url":"https://github.com/chocolatey/chocolatey-cookbook.git","svn_url":"https://github.com/chocolatey/chocolatey-cookbook","homepage":null,"size":737,"stargazers_count":38,"watchers_count":38,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":15,"forks":39,"open_issues":15,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39"},"html":{"href":"https://github.com/chocolatey/chocolatey-cookbook/pull/39"},"issue":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/39"},"comments":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/statuses/84e135598bef151ef170e8fd18d4647d0acdecc9"}}}}