Did I find the right examples for you? yes no

All Samples(23)  |  Call(13)  |  Derive(0)  |  Import(10)

        def upload_first(filenames, destination, *args, **kwargs):
    for filename in filenames:
        try:
            upload_template(filename, destination, *args, **kwargs)
        except DeployTemplateNotFound, err:
            if err.name != filename:
                raise
            continue
        else:
            return
    raise DeployTemplateNotFound(filename)
        


src/s/p/speedydeploy-HEAD/speedydeploy/webserver.py   speedydeploy(Download)
from base import _, Daemon, Ubuntu
from deployment import command
from utils import upload_template, upload_first
 
 
    def configure(self):
        upload_first([_('nginx/%(domain)s-sh.fcgi'),
                      'fcgi/wrapper-sh.fcgi'],
                     _(self.fcgi_path) + 'wrapper.fcgi',
                     fab.env,
                     mode=0755,
                     use_jinja=True)
 
        upload_first([_('nginx/%(domain)s.fcgi'),
                     use_jinja=True)
 
        upload_first([_('nginx/%(domain)s.htaccess'),
                      'fcgi/.htaccess'],
                     _('%(remote_dir)s/http/.htaccess'),
    def configure(self):
        self.start_command()
 
        upload_first([_('gunicorn/%(domain)s.conf'),
                      _('nginx/%(domain)s.gunicorn.conf'),

src/s/p/speedydeploy-HEAD/speedydeploy/project/__init__.py   speedydeploy(Download)
from ..base import _, Daemon, Debian, RedHat, Ubuntu
from ..deployment import command
from ..utils import upload_template, upload_first
 
from celery import RabbitMQ, Celery
    def configure(self):
        upload_first(['scrapy/settings_local.py',
                      'scrapy/settings_default.py'],
                     _('%(remote_dir)s/%(project_name)s/scrapy/'),
                     fab.env,

src/s/p/speedydeploy-HEAD/speedydeploy/project/celery.py   speedydeploy(Download)
from ..base import _, Daemon
from ..deployment import command
from ..utils import upload_template, upload_first
 
from cron import CronTab
 
        if not self.supervisor and self.check_running:
            upload_first(['celery/not_running.mail',
                         ],
                         _("%(remote_dir)s/utils/celery_not_running.mail"),
                         fab.env,
                         use_jinja=True)
            upload_first(['celery/check_running.sh',
    def supervisor_configure(self):
        upload_first([_('celery/%(domain)s.supervisor.conf'),
                      'celery/supervisor.conf',
                     ],
                     _('%(remote_dir)s/etc/supervisor/celery.conf'),

src/s/p/speedydeploy-HEAD/speedydeploy/project/sphinxsearch.py   speedydeploy(Download)
from ..base import _, Daemon, Debian, RedHat
from ..deployment import command
from ..utils import upload_template, upload_first
 
 
    def supervisor_configure(self):
        upload_first([_('sphinxsearch/%(domain)s.conf'),
                      'sphinxsearch/supervisor.conf',
                     ],
                     _('%(remote_dir)s/etc/supervisor/sphinxsearch.conf'),

src/s/p/speedydeploy-HEAD/speedydeploy/project/supervisor.py   speedydeploy(Download)
from ..base import _, Daemon
from ..deployment import command
from ..utils import upload_template, upload_first
 
 

src/s/p/speedydeploy-HEAD/speedydeploy/project/memcache.py   speedydeploy(Download)
from ..base import _, Daemon, Ubuntu
from ..deployment import command
from ..utils import upload_template, upload_first
 
 

src/s/p/speedydeploy-HEAD/speedydeploy/project/redis.py   speedydeploy(Download)
from ..base import _, Daemon, Ubuntu
from ..deployment import command
from ..utils import upload_template, upload_first
 
 

src/s/p/speedydeploy-HEAD/speedydeploy/project/cron.py   speedydeploy(Download)
from ..base import _, Daemon
from ..deployment import command
from ..utils import upload_template, upload_first
 
 

src/s/p/speedydeploy-HEAD/speedydeploy/deployment.py   speedydeploy(Download)
 
from base import _, OS, Debian, Ubuntu, Ubuntu104, Daemon, CommandNamespace
from utils import upload_template, upload_first
 
 

src/s/p/speedydeploy-HEAD/speedydeploy/project/jenkins.py   speedydeploy(Download)
from ..base import _, Daemon, ObjectWithCommands
from ..deployment import command
from ..utils import upload_first