{"action":"created","comment":{"url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/comments/32726697","id":32726697,"diff_hunk":"@@ -0,0 +1,94 @@\n+require 'thor'\n+require 'cloudshaper'\n+\n+module Cloudshaper\n+  class CLI < Thor\n+    class_option \"template_dir\", type: \"string\", default: \"templates\"","path":"lib/cloudshaper/cli.rb","position":6,"original_position":6,"commit_id":"331d5b6e3399bf490191da23cbe684fd4c949556","original_commit_id":"331d5b6e3399bf490191da23cbe684fd4c949556","user":{"login":"dalehamel","id":618615,"avatar_url":"https://avatars.githubusercontent.com/u/618615?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehamel","html_url":"https://github.com/dalehamel","followers_url":"https://api.github.com/users/dalehamel/followers","following_url":"https://api.github.com/users/dalehamel/following{/other_user}","gists_url":"https://api.github.com/users/dalehamel/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehamel/subscriptions","organizations_url":"https://api.github.com/users/dalehamel/orgs","repos_url":"https://api.github.com/users/dalehamel/repos","events_url":"https://api.github.com/users/dalehamel/events{/privacy}","received_events_url":"https://api.github.com/users/dalehamel/received_events","type":"User","site_admin":false},"body":"yeah you're right, we're just going to point them at the root module by name, which will be in its own folder.","created_at":"2015-06-18T13:04:28Z","updated_at":"2015-06-18T13:04:28Z","html_url":"https://github.com/dalehamel/cloudshaper/pull/16#discussion_r32726697","pull_request_url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/comments/32726697"},"html":{"href":"https://github.com/dalehamel/cloudshaper/pull/16#discussion_r32726697"},"pull_request":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16","id":37956970,"html_url":"https://github.com/dalehamel/cloudshaper/pull/16","diff_url":"https://github.com/dalehamel/cloudshaper/pull/16.diff","patch_url":"https://github.com/dalehamel/cloudshaper/pull/16.patch","issue_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues/16","number":16,"state":"open","locked":false,"title":"Nuke the DSL, add thor CLI","user":{"login":"dalehamel","id":618615,"avatar_url":"https://avatars.githubusercontent.com/u/618615?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehamel","html_url":"https://github.com/dalehamel","followers_url":"https://api.github.com/users/dalehamel/followers","following_url":"https://api.github.com/users/dalehamel/following{/other_user}","gists_url":"https://api.github.com/users/dalehamel/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehamel/subscriptions","organizations_url":"https://api.github.com/users/dalehamel/orgs","repos_url":"https://api.github.com/users/dalehamel/repos","events_url":"https://api.github.com/users/dalehamel/events{/privacy}","received_events_url":"https://api.github.com/users/dalehamel/received_events","type":"User","site_admin":false},"body":"@wvanbergen @thegedge @xthexder for review\r\n\r\nThis deletes all DSL functions, and their tests.\r\n\r\nThis effectively now just does the following:\r\n\r\n* Loads stack variables from a yaml file\r\n* Parses secrets.json\r\n* Adds variables and secrets as environment variables\r\n* Wraps calling terraform so that terraform receives these variables\r\n\r\nInstead of calling stack modules, we just point at a template folder (this is what 'root' is). This is the canonical terraform way to reference stack modules anyways.\r\n\r\nTested it out manually and it all seems to work so far.","created_at":"2015-06-17T23:09:40Z","updated_at":"2015-06-18T13:04:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70c1c48adedb940688f71388ce67272c4aa21c1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16/commits","review_comments_url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16/comments","review_comment_url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues/16/comments","statuses_url":"https://api.github.com/repos/dalehamel/cloudshaper/statuses/331d5b6e3399bf490191da23cbe684fd4c949556","head":{"label":"dalehamel:nuke-the-dsl","ref":"nuke-the-dsl","sha":"331d5b6e3399bf490191da23cbe684fd4c949556","user":{"login":"dalehamel","id":618615,"avatar_url":"https://avatars.githubusercontent.com/u/618615?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehamel","html_url":"https://github.com/dalehamel","followers_url":"https://api.github.com/users/dalehamel/followers","following_url":"https://api.github.com/users/dalehamel/following{/other_user}","gists_url":"https://api.github.com/users/dalehamel/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehamel/subscriptions","organizations_url":"https://api.github.com/users/dalehamel/orgs","repos_url":"https://api.github.com/users/dalehamel/repos","events_url":"https://api.github.com/users/dalehamel/events{/privacy}","received_events_url":"https://api.github.com/users/dalehamel/received_events","type":"User","site_admin":false},"repo":{"id":36707038,"name":"cloudshaper","full_name":"dalehamel/cloudshaper","owner":{"login":"dalehamel","id":618615,"avatar_url":"https://avatars.githubusercontent.com/u/618615?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehamel","html_url":"https://github.com/dalehamel","followers_url":"https://api.github.com/users/dalehamel/followers","following_url":"https://api.github.com/users/dalehamel/following{/other_user}","gists_url":"https://api.github.com/users/dalehamel/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehamel/subscriptions","organizations_url":"https://api.github.com/users/dalehamel/orgs","repos_url":"https://api.github.com/users/dalehamel/repos","events_url":"https://api.github.com/users/dalehamel/events{/privacy}","received_events_url":"https://api.github.com/users/dalehamel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dalehamel/cloudshaper","description":"Ruby DSL for managing terraform stacks","fork":false,"url":"https://api.github.com/repos/dalehamel/cloudshaper","forks_url":"https://api.github.com/repos/dalehamel/cloudshaper/forks","keys_url":"https://api.github.com/repos/dalehamel/cloudshaper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dalehamel/cloudshaper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dalehamel/cloudshaper/teams","hooks_url":"https://api.github.com/repos/dalehamel/cloudshaper/hooks","issue_events_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues/events{/number}","events_url":"https://api.github.com/repos/dalehamel/cloudshaper/events","assignees_url":"https://api.github.com/repos/dalehamel/cloudshaper/assignees{/user}","branches_url":"https://api.github.com/repos/dalehamel/cloudshaper/branches{/branch}","tags_url":"https://api.github.com/repos/dalehamel/cloudshaper/tags","blobs_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/refs{/sha}","trees_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dalehamel/cloudshaper/statuses/{sha}","languages_url":"https://api.github.com/repos/dalehamel/cloudshaper/languages","stargazers_url":"https://api.github.com/repos/dalehamel/cloudshaper/stargazers","contributors_url":"https://api.github.com/repos/dalehamel/cloudshaper/contributors","subscribers_url":"https://api.github.com/repos/dalehamel/cloudshaper/subscribers","subscription_url":"https://api.github.com/repos/dalehamel/cloudshaper/subscription","commits_url":"https://api.github.com/repos/dalehamel/cloudshaper/commits{/sha}","git_commits_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/commits{/sha}","comments_url":"https://api.github.com/repos/dalehamel/cloudshaper/comments{/number}","issue_comment_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues/comments{/number}","contents_url":"https://api.github.com/repos/dalehamel/cloudshaper/contents/{+path}","compare_url":"https://api.github.com/repos/dalehamel/cloudshaper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dalehamel/cloudshaper/merges","archive_url":"https://api.github.com/repos/dalehamel/cloudshaper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dalehamel/cloudshaper/downloads","issues_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues{/number}","pulls_url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls{/number}","milestones_url":"https://api.github.com/repos/dalehamel/cloudshaper/milestones{/number}","notifications_url":"https://api.github.com/repos/dalehamel/cloudshaper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dalehamel/cloudshaper/labels{/name}","releases_url":"https://api.github.com/repos/dalehamel/cloudshaper/releases{/id}","created_at":"2015-06-02T04:08:23Z","updated_at":"2015-06-10T20:44:31Z","pushed_at":"2015-06-17T23:09:40Z","git_url":"git://github.com/dalehamel/cloudshaper.git","ssh_url":"git@github.com:dalehamel/cloudshaper.git","clone_url":"https://github.com/dalehamel/cloudshaper.git","svn_url":"https://github.com/dalehamel/cloudshaper","homepage":null,"size":357,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"dalehamel:master","ref":"master","sha":"8c124e6bfaa8c37a84fc8e366a9f3fafd71c36f8","user":{"login":"dalehamel","id":618615,"avatar_url":"https://avatars.githubusercontent.com/u/618615?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehamel","html_url":"https://github.com/dalehamel","followers_url":"https://api.github.com/users/dalehamel/followers","following_url":"https://api.github.com/users/dalehamel/following{/other_user}","gists_url":"https://api.github.com/users/dalehamel/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehamel/subscriptions","organizations_url":"https://api.github.com/users/dalehamel/orgs","repos_url":"https://api.github.com/users/dalehamel/repos","events_url":"https://api.github.com/users/dalehamel/events{/privacy}","received_events_url":"https://api.github.com/users/dalehamel/received_events","type":"User","site_admin":false},"repo":{"id":36707038,"name":"cloudshaper","full_name":"dalehamel/cloudshaper","owner":{"login":"dalehamel","id":618615,"avatar_url":"https://avatars.githubusercontent.com/u/618615?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehamel","html_url":"https://github.com/dalehamel","followers_url":"https://api.github.com/users/dalehamel/followers","following_url":"https://api.github.com/users/dalehamel/following{/other_user}","gists_url":"https://api.github.com/users/dalehamel/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehamel/subscriptions","organizations_url":"https://api.github.com/users/dalehamel/orgs","repos_url":"https://api.github.com/users/dalehamel/repos","events_url":"https://api.github.com/users/dalehamel/events{/privacy}","received_events_url":"https://api.github.com/users/dalehamel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dalehamel/cloudshaper","description":"Ruby DSL for managing terraform stacks","fork":false,"url":"https://api.github.com/repos/dalehamel/cloudshaper","forks_url":"https://api.github.com/repos/dalehamel/cloudshaper/forks","keys_url":"https://api.github.com/repos/dalehamel/cloudshaper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dalehamel/cloudshaper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dalehamel/cloudshaper/teams","hooks_url":"https://api.github.com/repos/dalehamel/cloudshaper/hooks","issue_events_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues/events{/number}","events_url":"https://api.github.com/repos/dalehamel/cloudshaper/events","assignees_url":"https://api.github.com/repos/dalehamel/cloudshaper/assignees{/user}","branches_url":"https://api.github.com/repos/dalehamel/cloudshaper/branches{/branch}","tags_url":"https://api.github.com/repos/dalehamel/cloudshaper/tags","blobs_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/refs{/sha}","trees_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dalehamel/cloudshaper/statuses/{sha}","languages_url":"https://api.github.com/repos/dalehamel/cloudshaper/languages","stargazers_url":"https://api.github.com/repos/dalehamel/cloudshaper/stargazers","contributors_url":"https://api.github.com/repos/dalehamel/cloudshaper/contributors","subscribers_url":"https://api.github.com/repos/dalehamel/cloudshaper/subscribers","subscription_url":"https://api.github.com/repos/dalehamel/cloudshaper/subscription","commits_url":"https://api.github.com/repos/dalehamel/cloudshaper/commits{/sha}","git_commits_url":"https://api.github.com/repos/dalehamel/cloudshaper/git/commits{/sha}","comments_url":"https://api.github.com/repos/dalehamel/cloudshaper/comments{/number}","issue_comment_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues/comments{/number}","contents_url":"https://api.github.com/repos/dalehamel/cloudshaper/contents/{+path}","compare_url":"https://api.github.com/repos/dalehamel/cloudshaper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dalehamel/cloudshaper/merges","archive_url":"https://api.github.com/repos/dalehamel/cloudshaper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dalehamel/cloudshaper/downloads","issues_url":"https://api.github.com/repos/dalehamel/cloudshaper/issues{/number}","pulls_url":"https://api.github.com/repos/dalehamel/cloudshaper/pulls{/number}","milestones_url":"https://api.github.com/repos/dalehamel/cloudshaper/milestones{/number}","notifications_url":"https://api.github.com/repos/dalehamel/cloudshaper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dalehamel/cloudshaper/labels{/name}","releases_url":"https://api.github.com/repos/dalehamel/cloudshaper/releases{/id}","created_at":"2015-06-02T04:08:23Z","updated_at":"2015-06-10T20:44:31Z","pushed_at":"2015-06-17T23:09:40Z","git_url":"git://github.com/dalehamel/cloudshaper.git","ssh_url":"git@github.com:dalehamel/cloudshaper.git","clone_url":"https://github.com/dalehamel/cloudshaper.git","svn_url":"https://github.com/dalehamel/cloudshaper","homepage":null,"size":357,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16"},"html":{"href":"https://github.com/dalehamel/cloudshaper/pull/16"},"issue":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/issues/16"},"comments":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/dalehamel/cloudshaper/statuses/331d5b6e3399bf490191da23cbe684fd4c949556"}}}}