{"action":"created","comment":{"url":"https://api.github.com/repos/ryuzee/SlideHub/pulls/comments/54356188","id":54356188,"diff_hunk":"@@ -1,15 +1,28 @@\n-if AWSConfig.config.aws_access_id.blank? && AWSConfig.config.aws_secret_key.blank?\n-  cred = {\n-    bucket: AWSConfig.config.image_bucket_name\n-  }\n-else\n-  cred = {\n-    bucket: AWSConfig.config.image_bucket_name,\n-    access_key_id: AWSConfig.config.aws_access_id,\n-    secret_access_key: AWSConfig.config.aws_secret_key,\n+if CloudConfig::service_name == 'aws'\n+  if AWSEngine.config.aws_access_id.blank? && AWSEngine.config.aws_secret_key.blank?\n+    cred = {\n+      bucket: AWSEngine.config.image_bucket_name\n+    }\n+  else\n+    cred = {\n+      bucket: AWSEngine.config.image_bucket_name,\n+      access_key_id: AWSEngine.config.aws_access_id,\n+      secret_access_key: AWSEngine.config.aws_secret_key,\n+    }\n+  end\n+  Paperclip::Attachment.default_options[:storage] = :s3\n+  Paperclip::Attachment.default_options[:s3_host_name] = AWSEngine.s3_host_name\n+  Paperclip::Attachment.default_options[:s3_region] = AWSEngine.config.region\n+  Paperclip::Attachment.default_options[:s3_credentials] = cred\n+end\n+\n+if CloudConfig::service_name == 'azure'","path":"config/initializers/20_paperclip.rb","position":28,"original_position":28,"commit_id":"510943fa3ce98f15ac63d5888e12227fbcd5a71f","original_commit_id":"510943fa3ce98f15ac63d5888e12227fbcd5a71f","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Style/ColonMethodCall: Do not use `::` for method calls. [:ref](https://github.com/bbatsov/ruby-style-guide#double-colons)","created_at":"2016-02-28T20:58:46Z","updated_at":"2016-02-28T20:58:46Z","html_url":"https://github.com/ryuzee/SlideHub/pull/39#discussion_r54356188","pull_request_url":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/ryuzee/SlideHub/pulls/comments/54356188"},"html":{"href":"https://github.com/ryuzee/SlideHub/pull/39#discussion_r54356188"},"pull_request":{"href":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39","id":60990871,"html_url":"https://github.com/ryuzee/SlideHub/pull/39","diff_url":"https://github.com/ryuzee/SlideHub/pull/39.diff","patch_url":"https://github.com/ryuzee/SlideHub/pull/39.patch","issue_url":"https://api.github.com/repos/ryuzee/SlideHub/issues/39","number":39,"state":"open","locked":false,"title":"Apply Azure","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"body":"* Enables to use Azure for storage!!","created_at":"2016-02-28T13:07:33Z","updated_at":"2016-02-28T20:58:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ca92225dd6581627a835c10492ce29114b56258","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39/commits","review_comments_url":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39/comments","review_comment_url":"https://api.github.com/repos/ryuzee/SlideHub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ryuzee/SlideHub/issues/39/comments","statuses_url":"https://api.github.com/repos/ryuzee/SlideHub/statuses/510943fa3ce98f15ac63d5888e12227fbcd5a71f","head":{"label":"ryuzee:azure","ref":"azure","sha":"510943fa3ce98f15ac63d5888e12227fbcd5a71f","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"repo":{"id":47168038,"name":"SlideHub","full_name":"ryuzee/SlideHub","owner":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryuzee/SlideHub","description":"SlideHub is an Open Source Slide Sharing Application","fork":false,"url":"https://api.github.com/repos/ryuzee/SlideHub","forks_url":"https://api.github.com/repos/ryuzee/SlideHub/forks","keys_url":"https://api.github.com/repos/ryuzee/SlideHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryuzee/SlideHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryuzee/SlideHub/teams","hooks_url":"https://api.github.com/repos/ryuzee/SlideHub/hooks","issue_events_url":"https://api.github.com/repos/ryuzee/SlideHub/issues/events{/number}","events_url":"https://api.github.com/repos/ryuzee/SlideHub/events","assignees_url":"https://api.github.com/repos/ryuzee/SlideHub/assignees{/user}","branches_url":"https://api.github.com/repos/ryuzee/SlideHub/branches{/branch}","tags_url":"https://api.github.com/repos/ryuzee/SlideHub/tags","blobs_url":"https://api.github.com/repos/ryuzee/SlideHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryuzee/SlideHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryuzee/SlideHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryuzee/SlideHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryuzee/SlideHub/statuses/{sha}","languages_url":"https://api.github.com/repos/ryuzee/SlideHub/languages","stargazers_url":"https://api.github.com/repos/ryuzee/SlideHub/stargazers","contributors_url":"https://api.github.com/repos/ryuzee/SlideHub/contributors","subscribers_url":"https://api.github.com/repos/ryuzee/SlideHub/subscribers","subscription_url":"https://api.github.com/repos/ryuzee/SlideHub/subscription","commits_url":"https://api.github.com/repos/ryuzee/SlideHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryuzee/SlideHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryuzee/SlideHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryuzee/SlideHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryuzee/SlideHub/contents/{+path}","compare_url":"https://api.github.com/repos/ryuzee/SlideHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryuzee/SlideHub/merges","archive_url":"https://api.github.com/repos/ryuzee/SlideHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryuzee/SlideHub/downloads","issues_url":"https://api.github.com/repos/ryuzee/SlideHub/issues{/number}","pulls_url":"https://api.github.com/repos/ryuzee/SlideHub/pulls{/number}","milestones_url":"https://api.github.com/repos/ryuzee/SlideHub/milestones{/number}","notifications_url":"https://api.github.com/repos/ryuzee/SlideHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryuzee/SlideHub/labels{/name}","releases_url":"https://api.github.com/repos/ryuzee/SlideHub/releases{/id}","deployments_url":"https://api.github.com/repos/ryuzee/SlideHub/deployments","created_at":"2015-12-01T05:36:48Z","updated_at":"2016-02-19T02:13:09Z","pushed_at":"2016-02-28T20:58:28Z","git_url":"git://github.com/ryuzee/SlideHub.git","ssh_url":"git@github.com:ryuzee/SlideHub.git","clone_url":"https://github.com/ryuzee/SlideHub.git","svn_url":"https://github.com/ryuzee/SlideHub","homepage":"http://www.ryuzee.com","size":5690,"stargazers_count":14,"watchers_count":14,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":14,"default_branch":"master"}},"base":{"label":"ryuzee:master","ref":"master","sha":"c79d0d6bf680e49ecfd88ed377175916c9f48f02","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"repo":{"id":47168038,"name":"SlideHub","full_name":"ryuzee/SlideHub","owner":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryuzee/SlideHub","description":"SlideHub is an Open Source Slide Sharing Application","fork":false,"url":"https://api.github.com/repos/ryuzee/SlideHub","forks_url":"https://api.github.com/repos/ryuzee/SlideHub/forks","keys_url":"https://api.github.com/repos/ryuzee/SlideHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryuzee/SlideHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryuzee/SlideHub/teams","hooks_url":"https://api.github.com/repos/ryuzee/SlideHub/hooks","issue_events_url":"https://api.github.com/repos/ryuzee/SlideHub/issues/events{/number}","events_url":"https://api.github.com/repos/ryuzee/SlideHub/events","assignees_url":"https://api.github.com/repos/ryuzee/SlideHub/assignees{/user}","branches_url":"https://api.github.com/repos/ryuzee/SlideHub/branches{/branch}","tags_url":"https://api.github.com/repos/ryuzee/SlideHub/tags","blobs_url":"https://api.github.com/repos/ryuzee/SlideHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryuzee/SlideHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryuzee/SlideHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryuzee/SlideHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryuzee/SlideHub/statuses/{sha}","languages_url":"https://api.github.com/repos/ryuzee/SlideHub/languages","stargazers_url":"https://api.github.com/repos/ryuzee/SlideHub/stargazers","contributors_url":"https://api.github.com/repos/ryuzee/SlideHub/contributors","subscribers_url":"https://api.github.com/repos/ryuzee/SlideHub/subscribers","subscription_url":"https://api.github.com/repos/ryuzee/SlideHub/subscription","commits_url":"https://api.github.com/repos/ryuzee/SlideHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryuzee/SlideHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryuzee/SlideHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryuzee/SlideHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryuzee/SlideHub/contents/{+path}","compare_url":"https://api.github.com/repos/ryuzee/SlideHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryuzee/SlideHub/merges","archive_url":"https://api.github.com/repos/ryuzee/SlideHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryuzee/SlideHub/downloads","issues_url":"https://api.github.com/repos/ryuzee/SlideHub/issues{/number}","pulls_url":"https://api.github.com/repos/ryuzee/SlideHub/pulls{/number}","milestones_url":"https://api.github.com/repos/ryuzee/SlideHub/milestones{/number}","notifications_url":"https://api.github.com/repos/ryuzee/SlideHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryuzee/SlideHub/labels{/name}","releases_url":"https://api.github.com/repos/ryuzee/SlideHub/releases{/id}","deployments_url":"https://api.github.com/repos/ryuzee/SlideHub/deployments","created_at":"2015-12-01T05:36:48Z","updated_at":"2016-02-19T02:13:09Z","pushed_at":"2016-02-28T20:58:28Z","git_url":"git://github.com/ryuzee/SlideHub.git","ssh_url":"git@github.com:ryuzee/SlideHub.git","clone_url":"https://github.com/ryuzee/SlideHub.git","svn_url":"https://github.com/ryuzee/SlideHub","homepage":"http://www.ryuzee.com","size":5690,"stargazers_count":14,"watchers_count":14,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39"},"html":{"href":"https://github.com/ryuzee/SlideHub/pull/39"},"issue":{"href":"https://api.github.com/repos/ryuzee/SlideHub/issues/39"},"comments":{"href":"https://api.github.com/repos/ryuzee/SlideHub/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/ryuzee/SlideHub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ryuzee/SlideHub/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/ryuzee/SlideHub/statuses/510943fa3ce98f15ac63d5888e12227fbcd5a71f"}}}}