{"action":"closed","number":339,"pull_request":{"url":"https://api.github.com/repos/chef/chef-provisioning/pulls/339","id":35029192,"html_url":"https://github.com/chef/chef-provisioning/pull/339","diff_url":"https://github.com/chef/chef-provisioning/pull/339.diff","patch_url":"https://github.com/chef/chef-provisioning/pull/339.patch","issue_url":"https://api.github.com/repos/chef/chef-provisioning/issues/339","number":339,"state":"closed","locked":false,"title":"Add options[:scp_temp_dir] to set a SCP destination other than /tmp","user":{"login":"glennmatthews","id":5603551,"avatar_url":"https://avatars.githubusercontent.com/u/5603551?v=3","gravatar_id":"","url":"https://api.github.com/users/glennmatthews","html_url":"https://github.com/glennmatthews","followers_url":"https://api.github.com/users/glennmatthews/followers","following_url":"https://api.github.com/users/glennmatthews/following{/other_user}","gists_url":"https://api.github.com/users/glennmatthews/gists{/gist_id}","starred_url":"https://api.github.com/users/glennmatthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennmatthews/subscriptions","organizations_url":"https://api.github.com/users/glennmatthews/orgs","repos_url":"https://api.github.com/users/glennmatthews/repos","events_url":"https://api.github.com/users/glennmatthews/events{/privacy}","received_events_url":"https://api.github.com/users/glennmatthews/received_events","type":"User","site_admin":false},"body":"In one of our SSH provisioning scenarios, `/tmp` is not a valid location for `scp` to upload files to on the target machine. I've added a new option, `options[:scp_temp_dir]` which can be used to specify a different destination directory. This solves the problem for us.\r\n\r\n````\r\nwith_machine_options :transport_options => {\r\n...\r\n  :options => {\r\n    ...\r\n    :scp_temp_dir => '/bootflash', # upload files to /bootflash instead of /tmp\r\n  },\r\n  ...\r\n}\r\n````","created_at":"2015-05-08T17:31:08Z","updated_at":"2015-06-17T20:43:31Z","closed_at":"2015-06-17T20:43:31Z","merged_at":"2015-06-17T20:43:30Z","merge_commit_sha":"bb82abe2111b2ce0685a0379364e2b1ea03dccf8","assignee":null,"milestone":{"url":"https://api.github.com/repos/chef/chef-provisioning/milestones/5","html_url":"https://github.com/chef/chef-provisioning/milestones/1.3.0","labels_url":"https://api.github.com/repos/chef/chef-provisioning/milestones/5/labels","id":1167525,"number":5,"title":"1.3.0","description":"","creator":{"login":"tyler-ball","id":2481463,"avatar_url":"https://avatars.githubusercontent.com/u/2481463?v=3","gravatar_id":"","url":"https://api.github.com/users/tyler-ball","html_url":"https://github.com/tyler-ball","followers_url":"https://api.github.com/users/tyler-ball/followers","following_url":"https://api.github.com/users/tyler-ball/following{/other_user}","gists_url":"https://api.github.com/users/tyler-ball/gists{/gist_id}","starred_url":"https://api.github.com/users/tyler-ball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyler-ball/subscriptions","organizations_url":"https://api.github.com/users/tyler-ball/orgs","repos_url":"https://api.github.com/users/tyler-ball/repos","events_url":"https://api.github.com/users/tyler-ball/events{/privacy}","received_events_url":"https://api.github.com/users/tyler-ball/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2015-06-16T20:54:15Z","updated_at":"2015-06-17T20:43:31Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/chef/chef-provisioning/pulls/339/commits","review_comments_url":"https://api.github.com/repos/chef/chef-provisioning/pulls/339/comments","review_comment_url":"https://api.github.com/repos/chef/chef-provisioning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/chef-provisioning/issues/339/comments","statuses_url":"https://api.github.com/repos/chef/chef-provisioning/statuses/138f46959713d06761bae7b316a72a2b25167677","head":{"label":"glennmatthews:scp_temp_dir","ref":"scp_temp_dir","sha":"138f46959713d06761bae7b316a72a2b25167677","user":{"login":"glennmatthews","id":5603551,"avatar_url":"https://avatars.githubusercontent.com/u/5603551?v=3","gravatar_id":"","url":"https://api.github.com/users/glennmatthews","html_url":"https://github.com/glennmatthews","followers_url":"https://api.github.com/users/glennmatthews/followers","following_url":"https://api.github.com/users/glennmatthews/following{/other_user}","gists_url":"https://api.github.com/users/glennmatthews/gists{/gist_id}","starred_url":"https://api.github.com/users/glennmatthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennmatthews/subscriptions","organizations_url":"https://api.github.com/users/glennmatthews/orgs","repos_url":"https://api.github.com/users/glennmatthews/repos","events_url":"https://api.github.com/users/glennmatthews/events{/privacy}","received_events_url":"https://api.github.com/users/glennmatthews/received_events","type":"User","site_admin":false},"repo":{"id":33369408,"name":"chef-provisioning","full_name":"glennmatthews/chef-provisioning","owner":{"login":"glennmatthews","id":5603551,"avatar_url":"https://avatars.githubusercontent.com/u/5603551?v=3","gravatar_id":"","url":"https://api.github.com/users/glennmatthews","html_url":"https://github.com/glennmatthews","followers_url":"https://api.github.com/users/glennmatthews/followers","following_url":"https://api.github.com/users/glennmatthews/following{/other_user}","gists_url":"https://api.github.com/users/glennmatthews/gists{/gist_id}","starred_url":"https://api.github.com/users/glennmatthews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennmatthews/subscriptions","organizations_url":"https://api.github.com/users/glennmatthews/orgs","repos_url":"https://api.github.com/users/glennmatthews/repos","events_url":"https://api.github.com/users/glennmatthews/events{/privacy}","received_events_url":"https://api.github.com/users/glennmatthews/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glennmatthews/chef-provisioning","description":"A library for creating machines and infrastructures idempotently in Chef.","fork":true,"url":"https://api.github.com/repos/glennmatthews/chef-provisioning","forks_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/forks","keys_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/teams","hooks_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/hooks","issue_events_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/issues/events{/number}","events_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/events","assignees_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/assignees{/user}","branches_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/branches{/branch}","tags_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/tags","blobs_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/git/refs{/sha}","trees_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/statuses/{sha}","languages_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/languages","stargazers_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/stargazers","contributors_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/contributors","subscribers_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/subscribers","subscription_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/subscription","commits_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/commits{/sha}","git_commits_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/git/commits{/sha}","comments_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/comments{/number}","issue_comment_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/issues/comments{/number}","contents_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/contents/{+path}","compare_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/merges","archive_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/downloads","issues_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/issues{/number}","pulls_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/pulls{/number}","milestones_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/milestones{/number}","notifications_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/labels{/name}","releases_url":"https://api.github.com/repos/glennmatthews/chef-provisioning/releases{/id}","created_at":"2015-04-03T15:30:06Z","updated_at":"2015-04-03T15:30:07Z","pushed_at":"2015-06-17T16:43:02Z","git_url":"git://github.com/glennmatthews/chef-provisioning.git","ssh_url":"git@github.com:glennmatthews/chef-provisioning.git","clone_url":"https://github.com/glennmatthews/chef-provisioning.git","svn_url":"https://github.com/glennmatthews/chef-provisioning","homepage":null,"size":1023,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chef:master","ref":"master","sha":"4638bdf99e048452b5b80e06c118ba2a0a0132a3","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":14430294,"name":"chef-provisioning","full_name":"chef/chef-provisioning","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/chef-provisioning","description":"A library for creating machines and infrastructures idempotently in Chef.","fork":false,"url":"https://api.github.com/repos/chef/chef-provisioning","forks_url":"https://api.github.com/repos/chef/chef-provisioning/forks","keys_url":"https://api.github.com/repos/chef/chef-provisioning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/chef-provisioning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/chef-provisioning/teams","hooks_url":"https://api.github.com/repos/chef/chef-provisioning/hooks","issue_events_url":"https://api.github.com/repos/chef/chef-provisioning/issues/events{/number}","events_url":"https://api.github.com/repos/chef/chef-provisioning/events","assignees_url":"https://api.github.com/repos/chef/chef-provisioning/assignees{/user}","branches_url":"https://api.github.com/repos/chef/chef-provisioning/branches{/branch}","tags_url":"https://api.github.com/repos/chef/chef-provisioning/tags","blobs_url":"https://api.github.com/repos/chef/chef-provisioning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/chef-provisioning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/chef-provisioning/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/chef-provisioning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/chef-provisioning/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/chef-provisioning/languages","stargazers_url":"https://api.github.com/repos/chef/chef-provisioning/stargazers","contributors_url":"https://api.github.com/repos/chef/chef-provisioning/contributors","subscribers_url":"https://api.github.com/repos/chef/chef-provisioning/subscribers","subscription_url":"https://api.github.com/repos/chef/chef-provisioning/subscription","commits_url":"https://api.github.com/repos/chef/chef-provisioning/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/chef-provisioning/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/chef-provisioning/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/chef-provisioning/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/chef-provisioning/contents/{+path}","compare_url":"https://api.github.com/repos/chef/chef-provisioning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/chef-provisioning/merges","archive_url":"https://api.github.com/repos/chef/chef-provisioning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/chef-provisioning/downloads","issues_url":"https://api.github.com/repos/chef/chef-provisioning/issues{/number}","pulls_url":"https://api.github.com/repos/chef/chef-provisioning/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/chef-provisioning/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/chef-provisioning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/chef-provisioning/labels{/name}","releases_url":"https://api.github.com/repos/chef/chef-provisioning/releases{/id}","created_at":"2013-11-15T17:10:52Z","updated_at":"2015-06-16T22:53:59Z","pushed_at":"2015-06-17T20:43:30Z","git_url":"git://github.com/chef/chef-provisioning.git","ssh_url":"git@github.com:chef/chef-provisioning.git","clone_url":"https://github.com/chef/chef-provisioning.git","svn_url":"https://github.com/chef/chef-provisioning","homepage":null,"size":3448,"stargazers_count":412,"watchers_count":412,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":97,"mirror_url":null,"open_issues_count":77,"forks":97,"open_issues":77,"watchers":412,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/chef-provisioning/pulls/339"},"html":{"href":"https://github.com/chef/chef-provisioning/pull/339"},"issue":{"href":"https://api.github.com/repos/chef/chef-provisioning/issues/339"},"comments":{"href":"https://api.github.com/repos/chef/chef-provisioning/issues/339/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/chef-provisioning/pulls/339/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/chef-provisioning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/chef-provisioning/pulls/339/commits"},"statuses":{"href":"https://api.github.com/repos/chef/chef-provisioning/statuses/138f46959713d06761bae7b316a72a2b25167677"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tyler-ball","id":2481463,"avatar_url":"https://avatars.githubusercontent.com/u/2481463?v=3","gravatar_id":"","url":"https://api.github.com/users/tyler-ball","html_url":"https://github.com/tyler-ball","followers_url":"https://api.github.com/users/tyler-ball/followers","following_url":"https://api.github.com/users/tyler-ball/following{/other_user}","gists_url":"https://api.github.com/users/tyler-ball/gists{/gist_id}","starred_url":"https://api.github.com/users/tyler-ball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyler-ball/subscriptions","organizations_url":"https://api.github.com/users/tyler-ball/orgs","repos_url":"https://api.github.com/users/tyler-ball/repos","events_url":"https://api.github.com/users/tyler-ball/events{/privacy}","received_events_url":"https://api.github.com/users/tyler-ball/received_events","type":"User","site_admin":false},"comments":3,"review_comments":3,"commits":4,"additions":15,"deletions":4,"changed_files":2}}