Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/j/djangy-HEAD/install/install.py   djangy(Download)
require_file('/root/.ssh/authorized_keys', 'root', 'root', 0600, contents=read_file('conf/ssh_keys/root_key.pub'), overwrite=True)
require_file('/root/.ssh/config',          'root', 'root', 0600, contents=read_file('conf/ssh_keys/ssh_config'),   overwrite=True)
if config.MASTER_NODE and config.PRODUCTION:
    require_file('/etc/ssh/ssh_host_dsa_key',     'root', 'root', 0600, contents=read_file('conf/etc_ssh/ssh_host_dsa_key'),     overwrite=True)
    require_file('/etc/ssh/ssh_host_dsa_key.pub', 'root', 'root', 0644, contents=read_file('conf/etc_ssh/ssh_host_dsa_key.pub'), overwrite=True)
                ('MASTER_MANAGER_HOST     = \'%s\'\n' % config.MASTER_MANAGER_HOST) + 
                ('DEVPAYMENTS_API_KEY     = \'%s\'\n' % config.DEVPAYMENTS_API_KEY)))
if config.MASTER_NODE:
    require_directory('/srv/git',                        'git',        'git',        0710)
    require_directory('/srv/git/.ssh',                   'git',        'git',        0700)
    require_directory('/srv/git/repositories',           'git',        'git',        0710)
 
require_directory('/srv/logs',                           'root',       'root',       0711)
if config.MASTER_NODE:
require_database()
 
if config.MASTER_NODE:
    require_git_serve()
else:
    require_no_git_serve()
 
if config.MASTER_NODE:

src/d/j/djangy-HEAD/install/database.py   djangy(Download)
def require_database():
    if config.MASTER_NODE:
        _configure_mysql_server()
    else:
        run_ignore_failure('service', 'mysql', 'stop')
    if config.MASTER_NODE:
        _create_databases(config.MASTER_DATABASES)
    _syncdb_and_migrate()
    if config.ACTION == 'install' and config.MASTER_NODE:
        _load_admins()
        _load_docs()
    if config.MASTER_NODE:
        _load_chargables()
        _load_subscription_types()
        _migrate('/srv/djangy/src/server/worker/worker_manager/orm', 'orm')
 
    if config.MASTER_NODE:
        _syncdb('/srv/djangy/src/server/master/web_ui/application/web_ui')
        _syncdb('/srv/djangy/src/server/master/web_api/application/web_api')