{"action":"created","comment":{"url":"https://api.github.com/repos/2gis/vmmaster/pulls/comments/34969044","id":34969044,"diff_hunk":"@@ -0,0 +1,40 @@\n+from flask import Flask\n+from platforms import Platforms\n+from virtual_machines_pool import pool\n+from vmpool.virtual_machines_pool import VirtualMachinesPoolPreloader, \\\n+    VirtualMachineChecker\n+from vmmaster.core.logger import log, setup_logging\n+from vmmaster.core.config import setup_config, config\n+from vmmaster.core.utils.init import home_dir\n+from api.endpoint import endpoint\n+from api.api import api\n+\n+setup_config('%s/config.py' % home_dir())\n+setup_logging(logdir=config.LOG_DIR, logfile_name='vmpool.log')\n+\n+\n+class VMPoolApplication(Flask):\n+    def __init__(self, *args, **kwargs):\n+        super(VMPoolApplication, self).__init__(*args, **kwargs)\n+        log.info('Running application...')\n+        platforms = Platforms()\n+        self.platforms = platforms","path":"vmpool/app.py","position":21,"original_position":21,"commit_id":"b86c217b306a91c3beb27777e67de5835b46b0cd","original_commit_id":"b86c217b306a91c3beb27777e67de5835b46b0cd","user":{"login":"z00sts","id":5012880,"avatar_url":"https://avatars.githubusercontent.com/u/5012880?v=3","gravatar_id":"","url":"https://api.github.com/users/z00sts","html_url":"https://github.com/z00sts","followers_url":"https://api.github.com/users/z00sts/followers","following_url":"https://api.github.com/users/z00sts/following{/other_user}","gists_url":"https://api.github.com/users/z00sts/gists{/gist_id}","starred_url":"https://api.github.com/users/z00sts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z00sts/subscriptions","organizations_url":"https://api.github.com/users/z00sts/orgs","repos_url":"https://api.github.com/users/z00sts/repos","events_url":"https://api.github.com/users/z00sts/events{/privacy}","received_events_url":"https://api.github.com/users/z00sts/received_events","type":"User","site_admin":false},"body":"```\r\nself.platforms = Platforms()\r\n```","created_at":"2015-07-20T05:29:18Z","updated_at":"2015-07-20T05:29:18Z","html_url":"https://github.com/2gis/vmmaster/pull/81#discussion_r34969044","pull_request_url":"https://api.github.com/repos/2gis/vmmaster/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/comments/34969044"},"html":{"href":"https://github.com/2gis/vmmaster/pull/81#discussion_r34969044"},"pull_request":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/2gis/vmmaster/pulls/81","id":39991618,"html_url":"https://github.com/2gis/vmmaster/pull/81","diff_url":"https://github.com/2gis/vmmaster/pull/81.diff","patch_url":"https://github.com/2gis/vmmaster/pull/81.patch","issue_url":"https://api.github.com/repos/2gis/vmmaster/issues/81","number":81,"state":"open","locked":false,"title":"split-vmmaster-and-vmpool","user":{"login":"sh0ked","id":3863442,"avatar_url":"https://avatars.githubusercontent.com/u/3863442?v=3","gravatar_id":"","url":"https://api.github.com/users/sh0ked","html_url":"https://github.com/sh0ked","followers_url":"https://api.github.com/users/sh0ked/followers","following_url":"https://api.github.com/users/sh0ked/following{/other_user}","gists_url":"https://api.github.com/users/sh0ked/gists{/gist_id}","starred_url":"https://api.github.com/users/sh0ked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh0ked/subscriptions","organizations_url":"https://api.github.com/users/sh0ked/orgs","repos_url":"https://api.github.com/users/sh0ked/repos","events_url":"https://api.github.com/users/sh0ked/events{/privacy}","received_events_url":"https://api.github.com/users/sh0ked/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-15T06:28:17Z","updated_at":"2015-07-20T05:29:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6bbdf58f2fd8aba47d8a0afa5c200f459de8fe2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/2gis/vmmaster/pulls/81/commits","review_comments_url":"https://api.github.com/repos/2gis/vmmaster/pulls/81/comments","review_comment_url":"https://api.github.com/repos/2gis/vmmaster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gis/vmmaster/issues/81/comments","statuses_url":"https://api.github.com/repos/2gis/vmmaster/statuses/b86c217b306a91c3beb27777e67de5835b46b0cd","head":{"label":"2gis:split-vmmaster-and-vmpool","ref":"split-vmmaster-and-vmpool","sha":"b86c217b306a91c3beb27777e67de5835b46b0cd","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":31351213,"name":"vmmaster","full_name":"2gis/vmmaster","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/vmmaster","description":"Automatic virtual machines manager for selenium-based testing","fork":false,"url":"https://api.github.com/repos/2gis/vmmaster","forks_url":"https://api.github.com/repos/2gis/vmmaster/forks","keys_url":"https://api.github.com/repos/2gis/vmmaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/vmmaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/vmmaster/teams","hooks_url":"https://api.github.com/repos/2gis/vmmaster/hooks","issue_events_url":"https://api.github.com/repos/2gis/vmmaster/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/vmmaster/events","assignees_url":"https://api.github.com/repos/2gis/vmmaster/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/vmmaster/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/vmmaster/tags","blobs_url":"https://api.github.com/repos/2gis/vmmaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/vmmaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/vmmaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/vmmaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/vmmaster/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/vmmaster/languages","stargazers_url":"https://api.github.com/repos/2gis/vmmaster/stargazers","contributors_url":"https://api.github.com/repos/2gis/vmmaster/contributors","subscribers_url":"https://api.github.com/repos/2gis/vmmaster/subscribers","subscription_url":"https://api.github.com/repos/2gis/vmmaster/subscription","commits_url":"https://api.github.com/repos/2gis/vmmaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/vmmaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/vmmaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/vmmaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/vmmaster/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/vmmaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/vmmaster/merges","archive_url":"https://api.github.com/repos/2gis/vmmaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/vmmaster/downloads","issues_url":"https://api.github.com/repos/2gis/vmmaster/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/vmmaster/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/vmmaster/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/vmmaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/vmmaster/labels{/name}","releases_url":"https://api.github.com/repos/2gis/vmmaster/releases{/id}","created_at":"2015-02-26T04:53:56Z","updated_at":"2015-07-01T15:49:00Z","pushed_at":"2015-07-17T12:34:34Z","git_url":"git://github.com/2gis/vmmaster.git","ssh_url":"git@github.com:2gis/vmmaster.git","clone_url":"https://github.com/2gis/vmmaster.git","svn_url":"https://github.com/2gis/vmmaster","homepage":"","size":2323,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":6,"default_branch":"master"}},"base":{"label":"2gis:master","ref":"master","sha":"edbb5bdc43d525f25e5adb4edeeed0e1581db3c1","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":31351213,"name":"vmmaster","full_name":"2gis/vmmaster","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/vmmaster","description":"Automatic virtual machines manager for selenium-based testing","fork":false,"url":"https://api.github.com/repos/2gis/vmmaster","forks_url":"https://api.github.com/repos/2gis/vmmaster/forks","keys_url":"https://api.github.com/repos/2gis/vmmaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/vmmaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/vmmaster/teams","hooks_url":"https://api.github.com/repos/2gis/vmmaster/hooks","issue_events_url":"https://api.github.com/repos/2gis/vmmaster/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/vmmaster/events","assignees_url":"https://api.github.com/repos/2gis/vmmaster/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/vmmaster/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/vmmaster/tags","blobs_url":"https://api.github.com/repos/2gis/vmmaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/vmmaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/vmmaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/vmmaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/vmmaster/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/vmmaster/languages","stargazers_url":"https://api.github.com/repos/2gis/vmmaster/stargazers","contributors_url":"https://api.github.com/repos/2gis/vmmaster/contributors","subscribers_url":"https://api.github.com/repos/2gis/vmmaster/subscribers","subscription_url":"https://api.github.com/repos/2gis/vmmaster/subscription","commits_url":"https://api.github.com/repos/2gis/vmmaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/vmmaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/vmmaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/vmmaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/vmmaster/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/vmmaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/vmmaster/merges","archive_url":"https://api.github.com/repos/2gis/vmmaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/vmmaster/downloads","issues_url":"https://api.github.com/repos/2gis/vmmaster/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/vmmaster/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/vmmaster/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/vmmaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/vmmaster/labels{/name}","releases_url":"https://api.github.com/repos/2gis/vmmaster/releases{/id}","created_at":"2015-02-26T04:53:56Z","updated_at":"2015-07-01T15:49:00Z","pushed_at":"2015-07-17T12:34:34Z","git_url":"git://github.com/2gis/vmmaster.git","ssh_url":"git@github.com:2gis/vmmaster.git","clone_url":"https://github.com/2gis/vmmaster.git","svn_url":"https://github.com/2gis/vmmaster","homepage":"","size":2323,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/81"},"html":{"href":"https://github.com/2gis/vmmaster/pull/81"},"issue":{"href":"https://api.github.com/repos/2gis/vmmaster/issues/81"},"comments":{"href":"https://api.github.com/repos/2gis/vmmaster/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gis/vmmaster/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/2gis/vmmaster/statuses/b86c217b306a91c3beb27777e67de5835b46b0cd"}}}}