GitHub PullRequestReviewCommentEvent at 2014-04-16 12:35:08
Repository: nodeshot
Actor: stonaz
Payload: {"comment":{"url":"https://api.github.com/repos/ninuxorg/nodeshot/pulls/comments/11681248","id":11681248,"diff_hunk":"@@ -0,0 +1,165 @@\n+from fabric.api import *\n+\n+# Put host(s) configuration here or use -h switch on command line\n+# env.hosts = ''\n+# env.password = ''\n+\n+\n+git_repo = 'https://github.com/ninuxorg/nodeshot.git'\n+\n+#global root_dir\n+#global deploy_dir\n+#global project_dir\n+\n+def initialize():\n+    install_dirs = ('root_dir','deploy_dir','project_dir')\n+    for install_dir in install_dirs:\n+        if install_dir not in globals():\n+            initialize_dirs()\n+            \n+def initialize_dirs():        \n+    global root_dir\n+    global deploy_dir\n+    global project_dir\n+    root_dir = prompt('Set install directory ( including trailing slash ): ', default='/var/www/')\n+    deploy_dir = '%snodeshot/' % root_dir\n+    project_dir = '%sprojects/ninux' % deploy_dir\n+\n+def uninstall():\n+    initialize()\n+    with lcd(project_dir):\n+        local('cat dependencies.txt | xargs apt-get -y purge')\n+    \n+def install():\n+    initialize()\n+    clone()","path":"projects/ninux/fabfile_local.py","position":35,"original_position":35,"commit_id":"89c131dfc6b3e7888155f702a6ae14d941134311","original_commit_id":"09dd79ebbdb8e2505f2132e1719770f25e6601f4","user":{"login":"stonaz","id":3357630,"avatar_url":"https://avatars.githubusercontent.com/u/3357630?","gravatar_id":"1fa48d1b3954731d46bbbb7a197e9449","url":"https://api.github.com/users/stonaz","html_url":"https://github.com/stonaz","followers_url":"https://api.github.com/users/stonaz/followers","following_url":"https://api.github.com/users/stonaz/following{/other_user}","gists_url":"https://api.github.com/users/stonaz/gists{/gist_id}","starred_url":"https://api.github.com/users/stonaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stonaz/subscriptions","organizations_url":"https://api.github.com/users/stonaz/orgs","repos_url":"https://api.github.com/users/stonaz/repos","events_url":"https://api.github.com/users/stonaz/events{/privacy}","received_events_url":"https://api.github.com/users/stonaz/received_events","type":"User","site_admin":false},"body":"About time,\r\nthe download and install of dependencies and requirements takes actually a lot more time than cloning the repo.\r\nSo, the tarball wouldn't give a significant improvement in this context\r\n","created_at":"2014-04-16T12:35:08Z","updated_at":"2014-04-16T12:35:08Z","html_url":"https://github.com/ninuxorg/nodeshot/pull/150#discussion_r11681248","pull_request_url":"https://api.github.com/repos/ninuxorg/nodeshot/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/ninuxorg/nodeshot/pulls/comments/11681248"},"html":{"href":"https://github.com/ninuxorg/nodeshot/pull/150#discussion_r11681248"},"pull_request":{"href":"https://api.github.com/repos/ninuxorg/nodeshot/pulls/150"}}}}