{"action":"created","comment":{"url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/comments/84361939","pull_request_review_id":5145245,"id":84361939,"diff_hunk":"@@ -37,16 +37,51 @@\n # User editable variables END\n ##########\n \n+#To the arguments handling\n+import sys\n+import getopt\n+\n import socket\n from pygtail import Pygtail\n import smtplib\n from email.mime.multipart import MIMEMultipart\n from email.mime.text import MIMEText\n \n+try: \n+  opts, args = getopt.getopt(sys.argv[1:],\"hh:p:f:t:s:b:\",[\"help=\"])\n+except getopt.GetoptError:\n+  print 'Try to use the help with the followign command: summary-report.py -h'\n+  sys.exit(2)\n+\n+for opt,arg in opts:\n+  if opt == '-h':\n+    print \"\"\"summary-report.py has the following arguments options:\n+      -p <production>\n+      -f <sender email>\n+      -t <recipients emails>\n+      -s <smtp domain>","path":"summary-report.py","position":26,"original_position":26,"commit_id":"42cf35d7d18ac3c4bb13dcf469b4ff94fbc44e4d","original_commit_id":"ffbd9821278707a33c665cd6a2b02858df86c5ad","user":{"login":"sumeshpremraj","id":3002040,"avatar_url":"https://avatars.githubusercontent.com/u/3002040?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeshpremraj","html_url":"https://github.com/sumeshpremraj","followers_url":"https://api.github.com/users/sumeshpremraj/followers","following_url":"https://api.github.com/users/sumeshpremraj/following{/other_user}","gists_url":"https://api.github.com/users/sumeshpremraj/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeshpremraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeshpremraj/subscriptions","organizations_url":"https://api.github.com/users/sumeshpremraj/orgs","repos_url":"https://api.github.com/users/sumeshpremraj/repos","events_url":"https://api.github.com/users/sumeshpremraj/events{/privacy}","received_events_url":"https://api.github.com/users/sumeshpremraj/received_events","type":"User","site_admin":false},"body":"Oops, I mean the using <smtp host> would be more accurate. Just nitpicking, but since I've suggested other changes too, this can go with them.","created_at":"2016-10-20T19:48:46Z","updated_at":"2016-10-20T19:48:46Z","html_url":"https://github.com/sumeshpremraj/rundeck-scripts/pull/7#discussion_r84361939","pull_request_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/comments/84361939"},"html":{"href":"https://github.com/sumeshpremraj/rundeck-scripts/pull/7#discussion_r84361939"},"pull_request":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7","id":90261539,"html_url":"https://github.com/sumeshpremraj/rundeck-scripts/pull/7","diff_url":"https://github.com/sumeshpremraj/rundeck-scripts/pull/7.diff","patch_url":"https://github.com/sumeshpremraj/rundeck-scripts/pull/7.patch","issue_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/issues/7","number":7,"state":"open","locked":false,"title":"Added the simple arguments handling","user":{"login":"polaroi8d","id":9247788,"avatar_url":"https://avatars.githubusercontent.com/u/9247788?v=3","gravatar_id":"","url":"https://api.github.com/users/polaroi8d","html_url":"https://github.com/polaroi8d","followers_url":"https://api.github.com/users/polaroi8d/followers","following_url":"https://api.github.com/users/polaroi8d/following{/other_user}","gists_url":"https://api.github.com/users/polaroi8d/gists{/gist_id}","starred_url":"https://api.github.com/users/polaroi8d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polaroi8d/subscriptions","organizations_url":"https://api.github.com/users/polaroi8d/orgs","repos_url":"https://api.github.com/users/polaroi8d/repos","events_url":"https://api.github.com/users/polaroi8d/events{/privacy}","received_events_url":"https://api.github.com/users/polaroi8d/received_events","type":"User","site_admin":false},"body":"Here is the simple implementation for the #1 issue. ","created_at":"2016-10-20T19:04:08Z","updated_at":"2016-10-20T19:48:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e52dc57e6de8b76439441815ea77e5b5281c2d2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7/commits","review_comments_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7/comments","review_comment_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/issues/7/comments","statuses_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/statuses/42cf35d7d18ac3c4bb13dcf469b4ff94fbc44e4d","head":{"label":"polaroi8d:arguments_handling","ref":"arguments_handling","sha":"42cf35d7d18ac3c4bb13dcf469b4ff94fbc44e4d","user":{"login":"polaroi8d","id":9247788,"avatar_url":"https://avatars.githubusercontent.com/u/9247788?v=3","gravatar_id":"","url":"https://api.github.com/users/polaroi8d","html_url":"https://github.com/polaroi8d","followers_url":"https://api.github.com/users/polaroi8d/followers","following_url":"https://api.github.com/users/polaroi8d/following{/other_user}","gists_url":"https://api.github.com/users/polaroi8d/gists{/gist_id}","starred_url":"https://api.github.com/users/polaroi8d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polaroi8d/subscriptions","organizations_url":"https://api.github.com/users/polaroi8d/orgs","repos_url":"https://api.github.com/users/polaroi8d/repos","events_url":"https://api.github.com/users/polaroi8d/events{/privacy}","received_events_url":"https://api.github.com/users/polaroi8d/received_events","type":"User","site_admin":false},"repo":{"id":71479733,"name":"rundeck-scripts","full_name":"polaroi8d/rundeck-scripts","owner":{"login":"polaroi8d","id":9247788,"avatar_url":"https://avatars.githubusercontent.com/u/9247788?v=3","gravatar_id":"","url":"https://api.github.com/users/polaroi8d","html_url":"https://github.com/polaroi8d","followers_url":"https://api.github.com/users/polaroi8d/followers","following_url":"https://api.github.com/users/polaroi8d/following{/other_user}","gists_url":"https://api.github.com/users/polaroi8d/gists{/gist_id}","starred_url":"https://api.github.com/users/polaroi8d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polaroi8d/subscriptions","organizations_url":"https://api.github.com/users/polaroi8d/orgs","repos_url":"https://api.github.com/users/polaroi8d/repos","events_url":"https://api.github.com/users/polaroi8d/events{/privacy}","received_events_url":"https://api.github.com/users/polaroi8d/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/polaroi8d/rundeck-scripts","description":"Collection of custom scripts for Rundeck","fork":true,"url":"https://api.github.com/repos/polaroi8d/rundeck-scripts","forks_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/forks","keys_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/teams","hooks_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/hooks","issue_events_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/events","assignees_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/tags","blobs_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/languages","stargazers_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/stargazers","contributors_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/contributors","subscribers_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/subscribers","subscription_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/subscription","commits_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/merges","archive_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/downloads","issues_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/labels{/name}","releases_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/polaroi8d/rundeck-scripts/deployments","created_at":"2016-10-20T15:57:21Z","updated_at":"2016-10-20T15:57:22Z","pushed_at":"2016-10-20T19:35:49Z","git_url":"git://github.com/polaroi8d/rundeck-scripts.git","ssh_url":"git@github.com:polaroi8d/rundeck-scripts.git","clone_url":"https://github.com/polaroi8d/rundeck-scripts.git","svn_url":"https://github.com/polaroi8d/rundeck-scripts","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"sumeshpremraj:master","ref":"master","sha":"8184df78752f0903f5966dc0903f0a09cb26407e","user":{"login":"sumeshpremraj","id":3002040,"avatar_url":"https://avatars.githubusercontent.com/u/3002040?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeshpremraj","html_url":"https://github.com/sumeshpremraj","followers_url":"https://api.github.com/users/sumeshpremraj/followers","following_url":"https://api.github.com/users/sumeshpremraj/following{/other_user}","gists_url":"https://api.github.com/users/sumeshpremraj/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeshpremraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeshpremraj/subscriptions","organizations_url":"https://api.github.com/users/sumeshpremraj/orgs","repos_url":"https://api.github.com/users/sumeshpremraj/repos","events_url":"https://api.github.com/users/sumeshpremraj/events{/privacy}","received_events_url":"https://api.github.com/users/sumeshpremraj/received_events","type":"User","site_admin":false},"repo":{"id":70088918,"name":"rundeck-scripts","full_name":"sumeshpremraj/rundeck-scripts","owner":{"login":"sumeshpremraj","id":3002040,"avatar_url":"https://avatars.githubusercontent.com/u/3002040?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeshpremraj","html_url":"https://github.com/sumeshpremraj","followers_url":"https://api.github.com/users/sumeshpremraj/followers","following_url":"https://api.github.com/users/sumeshpremraj/following{/other_user}","gists_url":"https://api.github.com/users/sumeshpremraj/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeshpremraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeshpremraj/subscriptions","organizations_url":"https://api.github.com/users/sumeshpremraj/orgs","repos_url":"https://api.github.com/users/sumeshpremraj/repos","events_url":"https://api.github.com/users/sumeshpremraj/events{/privacy}","received_events_url":"https://api.github.com/users/sumeshpremraj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sumeshpremraj/rundeck-scripts","description":"Collection of custom scripts for Rundeck","fork":false,"url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts","forks_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/forks","keys_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/teams","hooks_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/hooks","issue_events_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/events","assignees_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/tags","blobs_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/languages","stargazers_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/stargazers","contributors_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/contributors","subscribers_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/subscribers","subscription_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/subscription","commits_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/merges","archive_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/downloads","issues_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/labels{/name}","releases_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/deployments","created_at":"2016-10-05T18:46:50Z","updated_at":"2016-10-20T07:27:52Z","pushed_at":"2016-10-20T19:35:50Z","git_url":"git://github.com/sumeshpremraj/rundeck-scripts.git","ssh_url":"git@github.com:sumeshpremraj/rundeck-scripts.git","clone_url":"https://github.com/sumeshpremraj/rundeck-scripts.git","svn_url":"https://github.com/sumeshpremraj/rundeck-scripts","homepage":null,"size":4,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7"},"html":{"href":"https://github.com/sumeshpremraj/rundeck-scripts/pull/7"},"issue":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/issues/7"},"comments":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/sumeshpremraj/rundeck-scripts/statuses/42cf35d7d18ac3c4bb13dcf469b4ff94fbc44e4d"}}}}
{"actor":{"display_login":"sumeshpremraj"}}