{ "info": { "author": "Dong Weiming", "author_email": "ciici123@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Clustering", "Topic :: System :: Software Distribution", "Topic :: System :: Systems Administration" ], "description": "=================================\n gentle - Help you quickly deploy code to the test environment\n=================================\n\n:Version: 0.1\n:Download: http://pypi.python.org/pypi/gentle\n:Source: http://github.com/dongweiming/gentle\n:Keywords: fabric, docopt, yaml, devops, python\n\n\n--\n\nWhat is a Gentle?\n======\n\nAs a programmer, I thought There may be a step to deployed to the test\nenvironment:\n\n- Copy of your code to the test server, enter the username and password.\n- Restart your test environment, such as nginx, superviosr.\n- Local to see results, repeat 1-2\n\nIt is a waste of time...\n\nGentle can help you automated do that. The development process is:\n\n- Switch to the directory you want to develop\n- Initialization gentle:\n\n - configure the directory you want to sync (use rsync)\n - set the test environment server ip, port, username and password\n - configure every time you want to update the code in the service restart\n\n- You only need coding and following this command::\n\n $gt publish\n\n If You are more lazyer, you can use::\n\n $gt p\n\nThat's all\n\nInstall\n=====\n First You must install `sshpass`, IN fabric rsync_project need input\n password again. I use sshpass automation of this process\n\n In ubuntu direct use apt-get/aptitude::\n\n $sudo apt-get install sshpass\n\n Other platform, Go ``http://sourceforge.net/projects/sshpass`` donwload\n the lastest verison, then type the following command::\n\n $tar zxvf sshpass-1.05.tar.gz && cd sshpass-1.05\n $./configure && make && sudo make install\n\n Then install `gentle`, You only use::\n\n $sudo pip install gentle\n\n or::\n\n $git clone https://github.com/dongweiming/gentle\n $cd gentle\n $sudo python setup.py install\n\nGet Started\n=========\n\n- **gt**\n\n After you install, you can use `gt` , Similar `fab` but very different.\n\n- **init**\n\n When you start to use gentle for the current directory. You first init it::\n\n $cd /Your/app/directory\n $gt init\n\n It can add a file with name *.gentle.yaml' to this directory.\n\n- **show**\n\n when complete initialization, you can show settings for default::\n\n $cat .gentle.yaml\n host: localhost:22\n password: 123456\n gateway:\n gatewaypassword:\n rsync:\n lpath: $ROOT\n rpath: /root\n services:\n nginx:\n command: /etc/init.d/nginx restart\n lpath: $ROOT/nginx.conf\n priority: 3\n rpath: /etc/nginx/nginx.conf\n sudo: true\n user: root\n supervisor:\n command: supervisorctl -c /etc/supervisor/supervisord.conf restart all\n lpath: $ROOT/supervisord.conf\n priority: 2\n rpath: /etc/supervisor/supervisord.conf\n sudo: true\n user: root\n username: root\n\nParameter Description\n~~~~~~~~~~~\n\n:host:\n environment server, can use `user@host:port`, or `host`, or `host:port`\n\n:password:\n account's password.\n\n:gateway:\n Gateway server(Jump server) use `user@host:port`, or `host`, or `host:port`\n\n:gatewaypassword:\n Gateway server's password\n\n:rsync:\n which dir that you want to sync.\n\n:services:\n which services that you want to restart.\n\n:username:\n which account to use.\n\n:lpath:\n local path, you can use *$ROOT$* for current directory.\n\n:rpath:\n remote path.\n\n:command:\n How to restart service's command.\n\n:priority:\n It for restart's order, it's bigger, and restart earlier.\n\n:sudo:\n A bool for tell gentle use sudo or not.\n\n:user:\n When use sudo which account to use. default it's username's value.\n\n- **list help**\n\n You can use::\n\n $gt -h\n\n- **list commands**\n\n You can type the following command to show available commands::\n\n $gt -l\n\n- **output type**\n\n Gnetle is use fabric default output type. you can find available type which::\n\n $gt -h\n\n You can assign it::\n\n $gt --show=debug,user rs # Only show debug,user type\n $gt --hide=warning rs #Hide status,aborts,warnings three types\n $gt --show debug rs --only #Only show debug type\n\nCommand Description\n~~~~~~~~~~~\n\n:rsync/rs:\n Rsync your local dir to remote.\n\n:restart/rt:\n Restart your services.\n\n:pubish/p:\n Publish your app, It equal *rsync* + *restart*.\n\n:showconf/show:\n Show gentle settings.\n\n:setconf/set:\n Set gentle conf. You can directly edit. Gentle.yaml file, you can also choose this command::\n\n - gt set:key=services.nginx.rpath,value=/root\n - gt s:key=host,value=8.8.8.8:12345\n - gt s:key=rsync.rpath,value=/root\n\n dot is the separator.\n\nEnjoy it\n=======\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.dongwm.com", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "Gentle", "package_url": "https://pypi.org/project/Gentle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Gentle/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.dongwm.com" }, "release_url": "https://pypi.org/project/Gentle/0.1/", "requires_dist": null, "requires_python": null, "summary": "Gentle is a help you quickly submit code to the test environment tools.", "version": "0.1" }, "last_serial": 935800, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f462041c87d5a804c6a3d7de87452d45", "sha256": "c44477c31713c96fde52df8634e6d24bf266f9f11fa80df3b3e07ea43d5460d0" }, "downloads": -1, "filename": "Gentle-0.1.tar.gz", "has_sig": false, "md5_digest": "f462041c87d5a804c6a3d7de87452d45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8990, "upload_time": "2013-12-04T15:12:24", "url": "https://files.pythonhosted.org/packages/9f/4d/0392ecd26f92c045c922d27d515bfb1c5b3db324f020858e05c2cdb79be0/Gentle-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f462041c87d5a804c6a3d7de87452d45", "sha256": "c44477c31713c96fde52df8634e6d24bf266f9f11fa80df3b3e07ea43d5460d0" }, "downloads": -1, "filename": "Gentle-0.1.tar.gz", "has_sig": false, "md5_digest": "f462041c87d5a804c6a3d7de87452d45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8990, "upload_time": "2013-12-04T15:12:24", "url": "https://files.pythonhosted.org/packages/9f/4d/0392ecd26f92c045c922d27d515bfb1c5b3db324f020858e05c2cdb79be0/Gentle-0.1.tar.gz" } ] }