{"action":"created","comment":{"url":"https://api.github.com/repos/envato/stack_master/pulls/comments/76166060","id":76166060,"diff_hunk":"@@ -64,7 +67,8 @@ def create_stack\n           failed!(\"Stack creation aborted\")\n         end\n         upload_files\n-        cf.create_stack(stack_options.merge(tags: proposed_stack.aws_tags))\n+        on_failure = @config.stack_defaults['on_failure'] || @options.on_failure","path":"lib/stack_master/commands/apply.rb","position":21,"original_position":21,"commit_id":"d0830d4d2d06c10e1a0ac8e96c7caef3489e6c95","original_commit_id":"d0830d4d2d06c10e1a0ac8e96c7caef3489e6c95","user":{"login":"dissonanz","id":1586146,"avatar_url":"https://avatars.githubusercontent.com/u/1586146?v=3","gravatar_id":"","url":"https://api.github.com/users/dissonanz","html_url":"https://github.com/dissonanz","followers_url":"https://api.github.com/users/dissonanz/followers","following_url":"https://api.github.com/users/dissonanz/following{/other_user}","gists_url":"https://api.github.com/users/dissonanz/gists{/gist_id}","starred_url":"https://api.github.com/users/dissonanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dissonanz/subscriptions","organizations_url":"https://api.github.com/users/dissonanz/orgs","repos_url":"https://api.github.com/users/dissonanz/repos","events_url":"https://api.github.com/users/dissonanz/events{/privacy}","received_events_url":"https://api.github.com/users/dissonanz/received_events","type":"User","site_admin":false},"body":"When I ran this in pry, `@options` was an Options object.\r\n```\r\n[1] pry(#<StackMaster::Commands::Apply>)> @options\r\n=> <Commander::Command::Options config=\"test.yml\", yes=true, on_failure=\"DELETE\">\r\n```","created_at":"2016-08-25T01:00:56Z","updated_at":"2016-08-25T01:00:56Z","html_url":"https://github.com/envato/stack_master/pull/127#discussion_r76166060","pull_request_url":"https://api.github.com/repos/envato/stack_master/pulls/127","_links":{"self":{"href":"https://api.github.com/repos/envato/stack_master/pulls/comments/76166060"},"html":{"href":"https://github.com/envato/stack_master/pull/127#discussion_r76166060"},"pull_request":{"href":"https://api.github.com/repos/envato/stack_master/pulls/127"}}},"pull_request":{"url":"https://api.github.com/repos/envato/stack_master/pulls/127","id":82626185,"html_url":"https://github.com/envato/stack_master/pull/127","diff_url":"https://github.com/envato/stack_master/pull/127.diff","patch_url":"https://github.com/envato/stack_master/pull/127.patch","issue_url":"https://api.github.com/repos/envato/stack_master/issues/127","number":127,"state":"open","locked":false,"title":"Added on_rollback config option to create_stack","user":{"login":"dissonanz","id":1586146,"avatar_url":"https://avatars.githubusercontent.com/u/1586146?v=3","gravatar_id":"","url":"https://api.github.com/users/dissonanz","html_url":"https://github.com/dissonanz","followers_url":"https://api.github.com/users/dissonanz/followers","following_url":"https://api.github.com/users/dissonanz/following{/other_user}","gists_url":"https://api.github.com/users/dissonanz/gists{/gist_id}","starred_url":"https://api.github.com/users/dissonanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dissonanz/subscriptions","organizations_url":"https://api.github.com/users/dissonanz/orgs","repos_url":"https://api.github.com/users/dissonanz/repos","events_url":"https://api.github.com/users/dissonanz/events{/privacy}","received_events_url":"https://api.github.com/users/dissonanz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-24T22:08:27Z","updated_at":"2016-08-25T01:00:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f5ac8a6bdd144678b44baa2f97c28297f7f9e3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/envato/stack_master/pulls/127/commits","review_comments_url":"https://api.github.com/repos/envato/stack_master/pulls/127/comments","review_comment_url":"https://api.github.com/repos/envato/stack_master/pulls/comments{/number}","comments_url":"https://api.github.com/repos/envato/stack_master/issues/127/comments","statuses_url":"https://api.github.com/repos/envato/stack_master/statuses/d0830d4d2d06c10e1a0ac8e96c7caef3489e6c95","head":{"label":"dissonanz:feature/on_rollback","ref":"feature/on_rollback","sha":"d0830d4d2d06c10e1a0ac8e96c7caef3489e6c95","user":{"login":"dissonanz","id":1586146,"avatar_url":"https://avatars.githubusercontent.com/u/1586146?v=3","gravatar_id":"","url":"https://api.github.com/users/dissonanz","html_url":"https://github.com/dissonanz","followers_url":"https://api.github.com/users/dissonanz/followers","following_url":"https://api.github.com/users/dissonanz/following{/other_user}","gists_url":"https://api.github.com/users/dissonanz/gists{/gist_id}","starred_url":"https://api.github.com/users/dissonanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dissonanz/subscriptions","organizations_url":"https://api.github.com/users/dissonanz/orgs","repos_url":"https://api.github.com/users/dissonanz/repos","events_url":"https://api.github.com/users/dissonanz/events{/privacy}","received_events_url":"https://api.github.com/users/dissonanz/received_events","type":"User","site_admin":false},"repo":{"id":66503267,"name":"stack_master","full_name":"dissonanz/stack_master","owner":{"login":"dissonanz","id":1586146,"avatar_url":"https://avatars.githubusercontent.com/u/1586146?v=3","gravatar_id":"","url":"https://api.github.com/users/dissonanz","html_url":"https://github.com/dissonanz","followers_url":"https://api.github.com/users/dissonanz/followers","following_url":"https://api.github.com/users/dissonanz/following{/other_user}","gists_url":"https://api.github.com/users/dissonanz/gists{/gist_id}","starred_url":"https://api.github.com/users/dissonanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dissonanz/subscriptions","organizations_url":"https://api.github.com/users/dissonanz/orgs","repos_url":"https://api.github.com/users/dissonanz/repos","events_url":"https://api.github.com/users/dissonanz/events{/privacy}","received_events_url":"https://api.github.com/users/dissonanz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dissonanz/stack_master","description":"The missing CloudFormation tool","fork":true,"url":"https://api.github.com/repos/dissonanz/stack_master","forks_url":"https://api.github.com/repos/dissonanz/stack_master/forks","keys_url":"https://api.github.com/repos/dissonanz/stack_master/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dissonanz/stack_master/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dissonanz/stack_master/teams","hooks_url":"https://api.github.com/repos/dissonanz/stack_master/hooks","issue_events_url":"https://api.github.com/repos/dissonanz/stack_master/issues/events{/number}","events_url":"https://api.github.com/repos/dissonanz/stack_master/events","assignees_url":"https://api.github.com/repos/dissonanz/stack_master/assignees{/user}","branches_url":"https://api.github.com/repos/dissonanz/stack_master/branches{/branch}","tags_url":"https://api.github.com/repos/dissonanz/stack_master/tags","blobs_url":"https://api.github.com/repos/dissonanz/stack_master/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dissonanz/stack_master/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dissonanz/stack_master/git/refs{/sha}","trees_url":"https://api.github.com/repos/dissonanz/stack_master/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dissonanz/stack_master/statuses/{sha}","languages_url":"https://api.github.com/repos/dissonanz/stack_master/languages","stargazers_url":"https://api.github.com/repos/dissonanz/stack_master/stargazers","contributors_url":"https://api.github.com/repos/dissonanz/stack_master/contributors","subscribers_url":"https://api.github.com/repos/dissonanz/stack_master/subscribers","subscription_url":"https://api.github.com/repos/dissonanz/stack_master/subscription","commits_url":"https://api.github.com/repos/dissonanz/stack_master/commits{/sha}","git_commits_url":"https://api.github.com/repos/dissonanz/stack_master/git/commits{/sha}","comments_url":"https://api.github.com/repos/dissonanz/stack_master/comments{/number}","issue_comment_url":"https://api.github.com/repos/dissonanz/stack_master/issues/comments{/number}","contents_url":"https://api.github.com/repos/dissonanz/stack_master/contents/{+path}","compare_url":"https://api.github.com/repos/dissonanz/stack_master/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dissonanz/stack_master/merges","archive_url":"https://api.github.com/repos/dissonanz/stack_master/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dissonanz/stack_master/downloads","issues_url":"https://api.github.com/repos/dissonanz/stack_master/issues{/number}","pulls_url":"https://api.github.com/repos/dissonanz/stack_master/pulls{/number}","milestones_url":"https://api.github.com/repos/dissonanz/stack_master/milestones{/number}","notifications_url":"https://api.github.com/repos/dissonanz/stack_master/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dissonanz/stack_master/labels{/name}","releases_url":"https://api.github.com/repos/dissonanz/stack_master/releases{/id}","deployments_url":"https://api.github.com/repos/dissonanz/stack_master/deployments","created_at":"2016-08-24T22:07:08Z","updated_at":"2016-08-24T22:07:09Z","pushed_at":"2016-08-25T00:42:28Z","git_url":"git://github.com/dissonanz/stack_master.git","ssh_url":"git@github.com:dissonanz/stack_master.git","clone_url":"https://github.com/dissonanz/stack_master.git","svn_url":"https://github.com/dissonanz/stack_master","homepage":"https://github.com/envato/stack_master","size":925,"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":"envato:master","ref":"master","sha":"b588c3c8e5f47d61720b337b4e8032265c1136ab","user":{"login":"envato","id":14786,"avatar_url":"https://avatars.githubusercontent.com/u/14786?v=3","gravatar_id":"","url":"https://api.github.com/users/envato","html_url":"https://github.com/envato","followers_url":"https://api.github.com/users/envato/followers","following_url":"https://api.github.com/users/envato/following{/other_user}","gists_url":"https://api.github.com/users/envato/gists{/gist_id}","starred_url":"https://api.github.com/users/envato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envato/subscriptions","organizations_url":"https://api.github.com/users/envato/orgs","repos_url":"https://api.github.com/users/envato/repos","events_url":"https://api.github.com/users/envato/events{/privacy}","received_events_url":"https://api.github.com/users/envato/received_events","type":"Organization","site_admin":false},"repo":{"id":44935321,"name":"stack_master","full_name":"envato/stack_master","owner":{"login":"envato","id":14786,"avatar_url":"https://avatars.githubusercontent.com/u/14786?v=3","gravatar_id":"","url":"https://api.github.com/users/envato","html_url":"https://github.com/envato","followers_url":"https://api.github.com/users/envato/followers","following_url":"https://api.github.com/users/envato/following{/other_user}","gists_url":"https://api.github.com/users/envato/gists{/gist_id}","starred_url":"https://api.github.com/users/envato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envato/subscriptions","organizations_url":"https://api.github.com/users/envato/orgs","repos_url":"https://api.github.com/users/envato/repos","events_url":"https://api.github.com/users/envato/events{/privacy}","received_events_url":"https://api.github.com/users/envato/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/envato/stack_master","description":"The missing CloudFormation tool","fork":false,"url":"https://api.github.com/repos/envato/stack_master","forks_url":"https://api.github.com/repos/envato/stack_master/forks","keys_url":"https://api.github.com/repos/envato/stack_master/keys{/key_id}","collaborators_url":"https://api.github.com/repos/envato/stack_master/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/envato/stack_master/teams","hooks_url":"https://api.github.com/repos/envato/stack_master/hooks","issue_events_url":"https://api.github.com/repos/envato/stack_master/issues/events{/number}","events_url":"https://api.github.com/repos/envato/stack_master/events","assignees_url":"https://api.github.com/repos/envato/stack_master/assignees{/user}","branches_url":"https://api.github.com/repos/envato/stack_master/branches{/branch}","tags_url":"https://api.github.com/repos/envato/stack_master/tags","blobs_url":"https://api.github.com/repos/envato/stack_master/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/envato/stack_master/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/envato/stack_master/git/refs{/sha}","trees_url":"https://api.github.com/repos/envato/stack_master/git/trees{/sha}","statuses_url":"https://api.github.com/repos/envato/stack_master/statuses/{sha}","languages_url":"https://api.github.com/repos/envato/stack_master/languages","stargazers_url":"https://api.github.com/repos/envato/stack_master/stargazers","contributors_url":"https://api.github.com/repos/envato/stack_master/contributors","subscribers_url":"https://api.github.com/repos/envato/stack_master/subscribers","subscription_url":"https://api.github.com/repos/envato/stack_master/subscription","commits_url":"https://api.github.com/repos/envato/stack_master/commits{/sha}","git_commits_url":"https://api.github.com/repos/envato/stack_master/git/commits{/sha}","comments_url":"https://api.github.com/repos/envato/stack_master/comments{/number}","issue_comment_url":"https://api.github.com/repos/envato/stack_master/issues/comments{/number}","contents_url":"https://api.github.com/repos/envato/stack_master/contents/{+path}","compare_url":"https://api.github.com/repos/envato/stack_master/compare/{base}...{head}","merges_url":"https://api.github.com/repos/envato/stack_master/merges","archive_url":"https://api.github.com/repos/envato/stack_master/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/envato/stack_master/downloads","issues_url":"https://api.github.com/repos/envato/stack_master/issues{/number}","pulls_url":"https://api.github.com/repos/envato/stack_master/pulls{/number}","milestones_url":"https://api.github.com/repos/envato/stack_master/milestones{/number}","notifications_url":"https://api.github.com/repos/envato/stack_master/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/envato/stack_master/labels{/name}","releases_url":"https://api.github.com/repos/envato/stack_master/releases{/id}","deployments_url":"https://api.github.com/repos/envato/stack_master/deployments","created_at":"2015-10-25T23:40:28Z","updated_at":"2016-08-23T11:15:57Z","pushed_at":"2016-08-25T00:42:28Z","git_url":"git://github.com/envato/stack_master.git","ssh_url":"git@github.com:envato/stack_master.git","clone_url":"https://github.com/envato/stack_master.git","svn_url":"https://github.com/envato/stack_master","homepage":"https://github.com/envato/stack_master","size":954,"stargazers_count":53,"watchers_count":53,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":16,"forks":13,"open_issues":16,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/envato/stack_master/pulls/127"},"html":{"href":"https://github.com/envato/stack_master/pull/127"},"issue":{"href":"https://api.github.com/repos/envato/stack_master/issues/127"},"comments":{"href":"https://api.github.com/repos/envato/stack_master/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/envato/stack_master/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/envato/stack_master/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/envato/stack_master/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/envato/stack_master/statuses/d0830d4d2d06c10e1a0ac8e96c7caef3489e6c95"}}}}
{"actor":{"display_login":"dissonanz"}}