{"action":"created","comment":{"url":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/comments/23625422","id":23625422,"diff_hunk":"@@ -0,0 +1,30 @@\n+'use strict';\n+\n+var _ = require('lodash');\n+var async = require('async');\n+var AWS = require('aws-sdk');\n+var files = require('./lib/files.js');\n+var nconf = require('nconf');\n+\n+var configurationPath = process.env.HOME + '/mutton.conf.json';","path":"mutton-config.js","position":9,"original_position":9,"commit_id":"2d869111086c14e7500da453fcf373926d427dc9","original_commit_id":"2d869111086c14e7500da453fcf373926d427dc9","user":{"login":"cberube","id":141515,"avatar_url":"https://avatars.githubusercontent.com/u/141515?v=3","gravatar_id":"","url":"https://api.github.com/users/cberube","html_url":"https://github.com/cberube","followers_url":"https://api.github.com/users/cberube/followers","following_url":"https://api.github.com/users/cberube/following{/other_user}","gists_url":"https://api.github.com/users/cberube/gists{/gist_id}","starred_url":"https://api.github.com/users/cberube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cberube/subscriptions","organizations_url":"https://api.github.com/users/cberube/orgs","repos_url":"https://api.github.com/users/cberube/repos","events_url":"https://api.github.com/users/cberube/events{/privacy}","received_events_url":"https://api.github.com/users/cberube/received_events","type":"User","site_admin":false},"body":"I'm mostly indifferent -- wouldn't mind moving it if it feels more at home in a hidden directory","created_at":"2015-01-27T17:27:42Z","updated_at":"2015-01-27T17:27:42Z","html_url":"https://github.com/CascadeEnergy/mutton/pull/2#discussion_r23625422","pull_request_url":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/comments/23625422"},"html":{"href":"https://github.com/CascadeEnergy/mutton/pull/2#discussion_r23625422"},"pull_request":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2","id":27708103,"html_url":"https://github.com/CascadeEnergy/mutton/pull/2","diff_url":"https://github.com/CascadeEnergy/mutton/pull/2.diff","patch_url":"https://github.com/CascadeEnergy/mutton/pull/2.patch","issue_url":"https://api.github.com/repos/CascadeEnergy/mutton/issues/2","number":2,"state":"open","locked":false,"title":"SEN-1025 -- Mutton test command","user":{"login":"cberube","id":141515,"avatar_url":"https://avatars.githubusercontent.com/u/141515?v=3","gravatar_id":"","url":"https://api.github.com/users/cberube","html_url":"https://github.com/cberube","followers_url":"https://api.github.com/users/cberube/followers","following_url":"https://api.github.com/users/cberube/following{/other_user}","gists_url":"https://api.github.com/users/cberube/gists{/gist_id}","starred_url":"https://api.github.com/users/cberube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cberube/subscriptions","organizations_url":"https://api.github.com/users/cberube/orgs","repos_url":"https://api.github.com/users/cberube/repos","events_url":"https://api.github.com/users/cberube/events{/privacy}","received_events_url":"https://api.github.com/users/cberube/received_events","type":"User","site_admin":false},"body":"To test:\r\n* Install mutton globally from this branch `npm install -g git://github.com/cberube/mutton.git#SEN-1025`\r\n* Generate an updated mutton config file: `mutton config`\r\n* Edit the `~/mutton.conf.json` file to include the correct region and account data, and any other variables (see sample file below)\r\n* Verify that deployment still works as expected -- note that the base path for lambda functions is now specified on the command line, not in the config file (e.g. `mutton deploy /var/cascade/lambda/ digest/**`\r\n* Execute a test command: `mutton test digest-correctData /var/cascade/lambda/digest/normalDataAvailable/correctData/support/samples/events/SEN-1042-001.json` -- the first argument is the name of the lambda function to test, the second argument is a JSON file containing the event to pass to the function (this will be treated as a mustache template and any variables in the configuration file will be replaced in the event)\r\n* Verify that mutton invokes the function, waits for log entries from the function to appear, then collects and displays those log entries\r\n\r\n**Sample mutton.conf.json file:**\r\n\r\n```json\r\n{\r\n  \"mutton\": {\r\n    \"deployPath\": \"/tmp\",\r\n    \"aws\": {\r\n      \"region\": \"us-west-2\"\r\n    },\r\n    \"variables\": {\r\n      \"accountId\": \"123456789012\",\r\n      \"region\": \"us-west-2\"\r\n    }\r\n  }\r\n}\r\n```","created_at":"2015-01-20T20:11:59Z","updated_at":"2015-01-27T17:27:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e9b55588dac113a2a8e701b92cf00fcdd474444","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2/commits","review_comments_url":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2/comments","review_comment_url":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CascadeEnergy/mutton/issues/2/comments","statuses_url":"https://api.github.com/repos/CascadeEnergy/mutton/statuses/2d869111086c14e7500da453fcf373926d427dc9","head":{"label":"cberube:SEN-1025","ref":"SEN-1025","sha":"2d869111086c14e7500da453fcf373926d427dc9","user":{"login":"cberube","id":141515,"avatar_url":"https://avatars.githubusercontent.com/u/141515?v=3","gravatar_id":"","url":"https://api.github.com/users/cberube","html_url":"https://github.com/cberube","followers_url":"https://api.github.com/users/cberube/followers","following_url":"https://api.github.com/users/cberube/following{/other_user}","gists_url":"https://api.github.com/users/cberube/gists{/gist_id}","starred_url":"https://api.github.com/users/cberube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cberube/subscriptions","organizations_url":"https://api.github.com/users/cberube/orgs","repos_url":"https://api.github.com/users/cberube/repos","events_url":"https://api.github.com/users/cberube/events{/privacy}","received_events_url":"https://api.github.com/users/cberube/received_events","type":"User","site_admin":false},"repo":{"id":28990707,"name":"mutton","full_name":"cberube/mutton","owner":{"login":"cberube","id":141515,"avatar_url":"https://avatars.githubusercontent.com/u/141515?v=3","gravatar_id":"","url":"https://api.github.com/users/cberube","html_url":"https://github.com/cberube","followers_url":"https://api.github.com/users/cberube/followers","following_url":"https://api.github.com/users/cberube/following{/other_user}","gists_url":"https://api.github.com/users/cberube/gists{/gist_id}","starred_url":"https://api.github.com/users/cberube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cberube/subscriptions","organizations_url":"https://api.github.com/users/cberube/orgs","repos_url":"https://api.github.com/users/cberube/repos","events_url":"https://api.github.com/users/cberube/events{/privacy}","received_events_url":"https://api.github.com/users/cberube/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cberube/mutton","description":"AWS Lambda function deployment tool","fork":true,"url":"https://api.github.com/repos/cberube/mutton","forks_url":"https://api.github.com/repos/cberube/mutton/forks","keys_url":"https://api.github.com/repos/cberube/mutton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cberube/mutton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cberube/mutton/teams","hooks_url":"https://api.github.com/repos/cberube/mutton/hooks","issue_events_url":"https://api.github.com/repos/cberube/mutton/issues/events{/number}","events_url":"https://api.github.com/repos/cberube/mutton/events","assignees_url":"https://api.github.com/repos/cberube/mutton/assignees{/user}","branches_url":"https://api.github.com/repos/cberube/mutton/branches{/branch}","tags_url":"https://api.github.com/repos/cberube/mutton/tags","blobs_url":"https://api.github.com/repos/cberube/mutton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cberube/mutton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cberube/mutton/git/refs{/sha}","trees_url":"https://api.github.com/repos/cberube/mutton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cberube/mutton/statuses/{sha}","languages_url":"https://api.github.com/repos/cberube/mutton/languages","stargazers_url":"https://api.github.com/repos/cberube/mutton/stargazers","contributors_url":"https://api.github.com/repos/cberube/mutton/contributors","subscribers_url":"https://api.github.com/repos/cberube/mutton/subscribers","subscription_url":"https://api.github.com/repos/cberube/mutton/subscription","commits_url":"https://api.github.com/repos/cberube/mutton/commits{/sha}","git_commits_url":"https://api.github.com/repos/cberube/mutton/git/commits{/sha}","comments_url":"https://api.github.com/repos/cberube/mutton/comments{/number}","issue_comment_url":"https://api.github.com/repos/cberube/mutton/issues/comments/{number}","contents_url":"https://api.github.com/repos/cberube/mutton/contents/{+path}","compare_url":"https://api.github.com/repos/cberube/mutton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cberube/mutton/merges","archive_url":"https://api.github.com/repos/cberube/mutton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cberube/mutton/downloads","issues_url":"https://api.github.com/repos/cberube/mutton/issues{/number}","pulls_url":"https://api.github.com/repos/cberube/mutton/pulls{/number}","milestones_url":"https://api.github.com/repos/cberube/mutton/milestones{/number}","notifications_url":"https://api.github.com/repos/cberube/mutton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cberube/mutton/labels{/name}","releases_url":"https://api.github.com/repos/cberube/mutton/releases{/id}","created_at":"2015-01-08T23:07:05Z","updated_at":"2015-01-14T00:27:40Z","pushed_at":"2015-01-24T00:28:43Z","git_url":"git://github.com/cberube/mutton.git","ssh_url":"git@github.com:cberube/mutton.git","clone_url":"https://github.com/cberube/mutton.git","svn_url":"https://github.com/cberube/mutton","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"CascadeEnergy:master","ref":"master","sha":"6c47ad121fe6f4e336fa23e12de838c3d205b588","user":{"login":"CascadeEnergy","id":3847760,"avatar_url":"https://avatars.githubusercontent.com/u/3847760?v=3","gravatar_id":"","url":"https://api.github.com/users/CascadeEnergy","html_url":"https://github.com/CascadeEnergy","followers_url":"https://api.github.com/users/CascadeEnergy/followers","following_url":"https://api.github.com/users/CascadeEnergy/following{/other_user}","gists_url":"https://api.github.com/users/CascadeEnergy/gists{/gist_id}","starred_url":"https://api.github.com/users/CascadeEnergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CascadeEnergy/subscriptions","organizations_url":"https://api.github.com/users/CascadeEnergy/orgs","repos_url":"https://api.github.com/users/CascadeEnergy/repos","events_url":"https://api.github.com/users/CascadeEnergy/events{/privacy}","received_events_url":"https://api.github.com/users/CascadeEnergy/received_events","type":"Organization","site_admin":false},"repo":{"id":28885102,"name":"mutton","full_name":"CascadeEnergy/mutton","owner":{"login":"CascadeEnergy","id":3847760,"avatar_url":"https://avatars.githubusercontent.com/u/3847760?v=3","gravatar_id":"","url":"https://api.github.com/users/CascadeEnergy","html_url":"https://github.com/CascadeEnergy","followers_url":"https://api.github.com/users/CascadeEnergy/followers","following_url":"https://api.github.com/users/CascadeEnergy/following{/other_user}","gists_url":"https://api.github.com/users/CascadeEnergy/gists{/gist_id}","starred_url":"https://api.github.com/users/CascadeEnergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CascadeEnergy/subscriptions","organizations_url":"https://api.github.com/users/CascadeEnergy/orgs","repos_url":"https://api.github.com/users/CascadeEnergy/repos","events_url":"https://api.github.com/users/CascadeEnergy/events{/privacy}","received_events_url":"https://api.github.com/users/CascadeEnergy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CascadeEnergy/mutton","description":"AWS Lambda function deployment tool","fork":false,"url":"https://api.github.com/repos/CascadeEnergy/mutton","forks_url":"https://api.github.com/repos/CascadeEnergy/mutton/forks","keys_url":"https://api.github.com/repos/CascadeEnergy/mutton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CascadeEnergy/mutton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CascadeEnergy/mutton/teams","hooks_url":"https://api.github.com/repos/CascadeEnergy/mutton/hooks","issue_events_url":"https://api.github.com/repos/CascadeEnergy/mutton/issues/events{/number}","events_url":"https://api.github.com/repos/CascadeEnergy/mutton/events","assignees_url":"https://api.github.com/repos/CascadeEnergy/mutton/assignees{/user}","branches_url":"https://api.github.com/repos/CascadeEnergy/mutton/branches{/branch}","tags_url":"https://api.github.com/repos/CascadeEnergy/mutton/tags","blobs_url":"https://api.github.com/repos/CascadeEnergy/mutton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CascadeEnergy/mutton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CascadeEnergy/mutton/git/refs{/sha}","trees_url":"https://api.github.com/repos/CascadeEnergy/mutton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CascadeEnergy/mutton/statuses/{sha}","languages_url":"https://api.github.com/repos/CascadeEnergy/mutton/languages","stargazers_url":"https://api.github.com/repos/CascadeEnergy/mutton/stargazers","contributors_url":"https://api.github.com/repos/CascadeEnergy/mutton/contributors","subscribers_url":"https://api.github.com/repos/CascadeEnergy/mutton/subscribers","subscription_url":"https://api.github.com/repos/CascadeEnergy/mutton/subscription","commits_url":"https://api.github.com/repos/CascadeEnergy/mutton/commits{/sha}","git_commits_url":"https://api.github.com/repos/CascadeEnergy/mutton/git/commits{/sha}","comments_url":"https://api.github.com/repos/CascadeEnergy/mutton/comments{/number}","issue_comment_url":"https://api.github.com/repos/CascadeEnergy/mutton/issues/comments/{number}","contents_url":"https://api.github.com/repos/CascadeEnergy/mutton/contents/{+path}","compare_url":"https://api.github.com/repos/CascadeEnergy/mutton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CascadeEnergy/mutton/merges","archive_url":"https://api.github.com/repos/CascadeEnergy/mutton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CascadeEnergy/mutton/downloads","issues_url":"https://api.github.com/repos/CascadeEnergy/mutton/issues{/number}","pulls_url":"https://api.github.com/repos/CascadeEnergy/mutton/pulls{/number}","milestones_url":"https://api.github.com/repos/CascadeEnergy/mutton/milestones{/number}","notifications_url":"https://api.github.com/repos/CascadeEnergy/mutton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CascadeEnergy/mutton/labels{/name}","releases_url":"https://api.github.com/repos/CascadeEnergy/mutton/releases{/id}","created_at":"2015-01-06T21:46:43Z","updated_at":"2015-01-13T21:47:45Z","pushed_at":"2015-01-14T00:21:34Z","git_url":"git://github.com/CascadeEnergy/mutton.git","ssh_url":"git@github.com:CascadeEnergy/mutton.git","clone_url":"https://github.com/CascadeEnergy/mutton.git","svn_url":"https://github.com/CascadeEnergy/mutton","homepage":null,"size":175,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2"},"html":{"href":"https://github.com/CascadeEnergy/mutton/pull/2"},"issue":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/issues/2"},"comments":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/CascadeEnergy/mutton/statuses/2d869111086c14e7500da453fcf373926d427dc9"}}}}