{"action":"created","comment":{"url":"https://api.github.com/repos/phstc/shoryuken/pulls/comments/26072506","id":26072506,"diff_hunk":"@@ -0,0 +1,31 @@\n+require 'thor/group'\n+\n+module Shoryuken\n+\tclass ThorCLI < Thor\n+\n+\t\tclass Install < Thor::Group\n+\t\t\tinclude Thor::Actions\n+\n+\t\t\tclass_option \"path\",\n+        aliases: [\"-p\"],\n+        default: \"config/shoryuken.yml\",\n+        desc: \"Specify a configuration file path\"\n+\n+      class_option \"init-path\",\n+        aliases: [\"-ip\"],\n+        default: \"config/initializers/shoryuken.rb\",\n+        desc: \"Specify a initializer file path\"\n+\n+      def self.source_root\n+        File.expand_path(\"../install\", __FILE__)\n+      end\n+\n+      def create_configuration\n+        copy_file(\"shoryuken.yml\", options[:path])\n+        copy_file(\"shoryuken.rb\", options[:'init-path'])\n+      end\n+","path":"lib/shoryuken/cli/install.rb","position":27,"original_position":27,"commit_id":"f983b0df26af54d79f062e847a26c45fe6e66daa","original_commit_id":"f983b0df26af54d79f062e847a26c45fe6e66daa","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at class body end.","created_at":"2015-03-09T20:31:49Z","updated_at":"2015-03-09T20:31:49Z","html_url":"https://github.com/phstc/shoryuken/pull/71#discussion_r26072506","pull_request_url":"https://api.github.com/repos/phstc/shoryuken/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/phstc/shoryuken/pulls/comments/26072506"},"html":{"href":"https://github.com/phstc/shoryuken/pull/71#discussion_r26072506"},"pull_request":{"href":"https://api.github.com/repos/phstc/shoryuken/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/phstc/shoryuken/pulls/71","id":30796901,"html_url":"https://github.com/phstc/shoryuken/pull/71","diff_url":"https://github.com/phstc/shoryuken/pull/71.diff","patch_url":"https://github.com/phstc/shoryuken/pull/71.patch","issue_url":"https://api.github.com/repos/phstc/shoryuken/issues/71","number":71,"state":"open","locked":false,"title":"Adding \"rails installer\", which generates the initializer in order to co...","user":{"login":"renanmzmendes","id":1081317,"avatar_url":"https://avatars.githubusercontent.com/u/1081317?v=3","gravatar_id":"","url":"https://api.github.com/users/renanmzmendes","html_url":"https://github.com/renanmzmendes","followers_url":"https://api.github.com/users/renanmzmendes/followers","following_url":"https://api.github.com/users/renanmzmendes/following{/other_user}","gists_url":"https://api.github.com/users/renanmzmendes/gists{/gist_id}","starred_url":"https://api.github.com/users/renanmzmendes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renanmzmendes/subscriptions","organizations_url":"https://api.github.com/users/renanmzmendes/orgs","repos_url":"https://api.github.com/users/renanmzmendes/repos","events_url":"https://api.github.com/users/renanmzmendes/events{/privacy}","received_events_url":"https://api.github.com/users/renanmzmendes/received_events","type":"User","site_admin":false},"body":"...nfigure rails main process environment\r\n\r\nI have used Thor for that. Maybe we should considering using it also when running shoryuken. In my opinion it is cleaner than using OptionParser","created_at":"2015-03-09T20:31:43Z","updated_at":"2015-03-09T20:31:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28c3648b4b847a48609b8856ee37775f4bf9551c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phstc/shoryuken/pulls/71/commits","review_comments_url":"https://api.github.com/repos/phstc/shoryuken/pulls/71/comments","review_comment_url":"https://api.github.com/repos/phstc/shoryuken/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phstc/shoryuken/issues/71/comments","statuses_url":"https://api.github.com/repos/phstc/shoryuken/statuses/f983b0df26af54d79f062e847a26c45fe6e66daa","head":{"label":"renanmzmendes:master","ref":"master","sha":"f983b0df26af54d79f062e847a26c45fe6e66daa","user":{"login":"renanmzmendes","id":1081317,"avatar_url":"https://avatars.githubusercontent.com/u/1081317?v=3","gravatar_id":"","url":"https://api.github.com/users/renanmzmendes","html_url":"https://github.com/renanmzmendes","followers_url":"https://api.github.com/users/renanmzmendes/followers","following_url":"https://api.github.com/users/renanmzmendes/following{/other_user}","gists_url":"https://api.github.com/users/renanmzmendes/gists{/gist_id}","starred_url":"https://api.github.com/users/renanmzmendes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renanmzmendes/subscriptions","organizations_url":"https://api.github.com/users/renanmzmendes/orgs","repos_url":"https://api.github.com/users/renanmzmendes/repos","events_url":"https://api.github.com/users/renanmzmendes/events{/privacy}","received_events_url":"https://api.github.com/users/renanmzmendes/received_events","type":"User","site_admin":false},"repo":{"id":31782380,"name":"shoryuken","full_name":"renanmzmendes/shoryuken","owner":{"login":"renanmzmendes","id":1081317,"avatar_url":"https://avatars.githubusercontent.com/u/1081317?v=3","gravatar_id":"","url":"https://api.github.com/users/renanmzmendes","html_url":"https://github.com/renanmzmendes","followers_url":"https://api.github.com/users/renanmzmendes/followers","following_url":"https://api.github.com/users/renanmzmendes/following{/other_user}","gists_url":"https://api.github.com/users/renanmzmendes/gists{/gist_id}","starred_url":"https://api.github.com/users/renanmzmendes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renanmzmendes/subscriptions","organizations_url":"https://api.github.com/users/renanmzmendes/orgs","repos_url":"https://api.github.com/users/renanmzmendes/repos","events_url":"https://api.github.com/users/renanmzmendes/events{/privacy}","received_events_url":"https://api.github.com/users/renanmzmendes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/renanmzmendes/shoryuken","description":"A super efficient AWS SQS thread based message processor for Ruby","fork":true,"url":"https://api.github.com/repos/renanmzmendes/shoryuken","forks_url":"https://api.github.com/repos/renanmzmendes/shoryuken/forks","keys_url":"https://api.github.com/repos/renanmzmendes/shoryuken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/renanmzmendes/shoryuken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/renanmzmendes/shoryuken/teams","hooks_url":"https://api.github.com/repos/renanmzmendes/shoryuken/hooks","issue_events_url":"https://api.github.com/repos/renanmzmendes/shoryuken/issues/events{/number}","events_url":"https://api.github.com/repos/renanmzmendes/shoryuken/events","assignees_url":"https://api.github.com/repos/renanmzmendes/shoryuken/assignees{/user}","branches_url":"https://api.github.com/repos/renanmzmendes/shoryuken/branches{/branch}","tags_url":"https://api.github.com/repos/renanmzmendes/shoryuken/tags","blobs_url":"https://api.github.com/repos/renanmzmendes/shoryuken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/renanmzmendes/shoryuken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/renanmzmendes/shoryuken/git/refs{/sha}","trees_url":"https://api.github.com/repos/renanmzmendes/shoryuken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/renanmzmendes/shoryuken/statuses/{sha}","languages_url":"https://api.github.com/repos/renanmzmendes/shoryuken/languages","stargazers_url":"https://api.github.com/repos/renanmzmendes/shoryuken/stargazers","contributors_url":"https://api.github.com/repos/renanmzmendes/shoryuken/contributors","subscribers_url":"https://api.github.com/repos/renanmzmendes/shoryuken/subscribers","subscription_url":"https://api.github.com/repos/renanmzmendes/shoryuken/subscription","commits_url":"https://api.github.com/repos/renanmzmendes/shoryuken/commits{/sha}","git_commits_url":"https://api.github.com/repos/renanmzmendes/shoryuken/git/commits{/sha}","comments_url":"https://api.github.com/repos/renanmzmendes/shoryuken/comments{/number}","issue_comment_url":"https://api.github.com/repos/renanmzmendes/shoryuken/issues/comments{/number}","contents_url":"https://api.github.com/repos/renanmzmendes/shoryuken/contents/{+path}","compare_url":"https://api.github.com/repos/renanmzmendes/shoryuken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/renanmzmendes/shoryuken/merges","archive_url":"https://api.github.com/repos/renanmzmendes/shoryuken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/renanmzmendes/shoryuken/downloads","issues_url":"https://api.github.com/repos/renanmzmendes/shoryuken/issues{/number}","pulls_url":"https://api.github.com/repos/renanmzmendes/shoryuken/pulls{/number}","milestones_url":"https://api.github.com/repos/renanmzmendes/shoryuken/milestones{/number}","notifications_url":"https://api.github.com/repos/renanmzmendes/shoryuken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/renanmzmendes/shoryuken/labels{/name}","releases_url":"https://api.github.com/repos/renanmzmendes/shoryuken/releases{/id}","created_at":"2015-03-06T18:15:07Z","updated_at":"2015-03-09T20:26:44Z","pushed_at":"2015-03-09T20:26:43Z","git_url":"git://github.com/renanmzmendes/shoryuken.git","ssh_url":"git@github.com:renanmzmendes/shoryuken.git","clone_url":"https://github.com/renanmzmendes/shoryuken.git","svn_url":"https://github.com/renanmzmendes/shoryuken","homepage":"https://github.com/phstc/shoryuken","size":1832,"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":"phstc:master","ref":"master","sha":"b0892b192dfae17ded57221bafe89f0ff06d737c","user":{"login":"phstc","id":105652,"avatar_url":"https://avatars.githubusercontent.com/u/105652?v=3","gravatar_id":"","url":"https://api.github.com/users/phstc","html_url":"https://github.com/phstc","followers_url":"https://api.github.com/users/phstc/followers","following_url":"https://api.github.com/users/phstc/following{/other_user}","gists_url":"https://api.github.com/users/phstc/gists{/gist_id}","starred_url":"https://api.github.com/users/phstc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phstc/subscriptions","organizations_url":"https://api.github.com/users/phstc/orgs","repos_url":"https://api.github.com/users/phstc/repos","events_url":"https://api.github.com/users/phstc/events{/privacy}","received_events_url":"https://api.github.com/users/phstc/received_events","type":"User","site_admin":false},"repo":{"id":23578850,"name":"shoryuken","full_name":"phstc/shoryuken","owner":{"login":"phstc","id":105652,"avatar_url":"https://avatars.githubusercontent.com/u/105652?v=3","gravatar_id":"","url":"https://api.github.com/users/phstc","html_url":"https://github.com/phstc","followers_url":"https://api.github.com/users/phstc/followers","following_url":"https://api.github.com/users/phstc/following{/other_user}","gists_url":"https://api.github.com/users/phstc/gists{/gist_id}","starred_url":"https://api.github.com/users/phstc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phstc/subscriptions","organizations_url":"https://api.github.com/users/phstc/orgs","repos_url":"https://api.github.com/users/phstc/repos","events_url":"https://api.github.com/users/phstc/events{/privacy}","received_events_url":"https://api.github.com/users/phstc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phstc/shoryuken","description":"A super efficient AWS SQS thread based message processor for Ruby","fork":false,"url":"https://api.github.com/repos/phstc/shoryuken","forks_url":"https://api.github.com/repos/phstc/shoryuken/forks","keys_url":"https://api.github.com/repos/phstc/shoryuken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phstc/shoryuken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phstc/shoryuken/teams","hooks_url":"https://api.github.com/repos/phstc/shoryuken/hooks","issue_events_url":"https://api.github.com/repos/phstc/shoryuken/issues/events{/number}","events_url":"https://api.github.com/repos/phstc/shoryuken/events","assignees_url":"https://api.github.com/repos/phstc/shoryuken/assignees{/user}","branches_url":"https://api.github.com/repos/phstc/shoryuken/branches{/branch}","tags_url":"https://api.github.com/repos/phstc/shoryuken/tags","blobs_url":"https://api.github.com/repos/phstc/shoryuken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phstc/shoryuken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phstc/shoryuken/git/refs{/sha}","trees_url":"https://api.github.com/repos/phstc/shoryuken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phstc/shoryuken/statuses/{sha}","languages_url":"https://api.github.com/repos/phstc/shoryuken/languages","stargazers_url":"https://api.github.com/repos/phstc/shoryuken/stargazers","contributors_url":"https://api.github.com/repos/phstc/shoryuken/contributors","subscribers_url":"https://api.github.com/repos/phstc/shoryuken/subscribers","subscription_url":"https://api.github.com/repos/phstc/shoryuken/subscription","commits_url":"https://api.github.com/repos/phstc/shoryuken/commits{/sha}","git_commits_url":"https://api.github.com/repos/phstc/shoryuken/git/commits{/sha}","comments_url":"https://api.github.com/repos/phstc/shoryuken/comments{/number}","issue_comment_url":"https://api.github.com/repos/phstc/shoryuken/issues/comments{/number}","contents_url":"https://api.github.com/repos/phstc/shoryuken/contents/{+path}","compare_url":"https://api.github.com/repos/phstc/shoryuken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phstc/shoryuken/merges","archive_url":"https://api.github.com/repos/phstc/shoryuken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phstc/shoryuken/downloads","issues_url":"https://api.github.com/repos/phstc/shoryuken/issues{/number}","pulls_url":"https://api.github.com/repos/phstc/shoryuken/pulls{/number}","milestones_url":"https://api.github.com/repos/phstc/shoryuken/milestones{/number}","notifications_url":"https://api.github.com/repos/phstc/shoryuken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phstc/shoryuken/labels{/name}","releases_url":"https://api.github.com/repos/phstc/shoryuken/releases{/id}","created_at":"2014-09-02T13:04:10Z","updated_at":"2015-03-09T18:24:22Z","pushed_at":"2015-03-09T18:24:22Z","git_url":"git://github.com/phstc/shoryuken.git","ssh_url":"git@github.com:phstc/shoryuken.git","clone_url":"https://github.com/phstc/shoryuken.git","svn_url":"https://github.com/phstc/shoryuken","homepage":"https://github.com/phstc/shoryuken","size":1865,"stargazers_count":248,"watchers_count":248,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":5,"forks":18,"open_issues":5,"watchers":248,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phstc/shoryuken/pulls/71"},"html":{"href":"https://github.com/phstc/shoryuken/pull/71"},"issue":{"href":"https://api.github.com/repos/phstc/shoryuken/issues/71"},"comments":{"href":"https://api.github.com/repos/phstc/shoryuken/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/phstc/shoryuken/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/phstc/shoryuken/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phstc/shoryuken/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/phstc/shoryuken/statuses/f983b0df26af54d79f062e847a26c45fe6e66daa"}}}}