예제 #1
0
    def run(self, git_branch='master'):
        """
        Install theme to WordPress theme dir.
        """
        with cd(env.REPO_DIR):
            git.git_pull(git_branch)

        run('rsync -avLP {} {}'.format(THEME_DIR, REMOTE_THEME_DIR))
예제 #2
0
def update():
    """ Updates vim repository and plugins. """
    # git pull
    with cd('.vim'):
        git_pull()

    # plugins update
    cmd = 'vim +NeoBundleUpdate +qa!'
    run(cmd)
예제 #3
0
파일: vim.py 프로젝트: eseceve/magnetizer
def update():
    """ Updates vim repository and plugins. """
    # plugins dependencies
    install_dependencies()

    # git pull
    with cd('.vim'):
        print(green('Updating .vim folder'))
        git_pull()

        print(green('Updating submodules'))
        run('git submodule update --init')

    # plugins update
    cmd = 'vim +NeoBundleUpdate +qa!'
    run(cmd)
예제 #4
0
def update():
    """ Updates vim repository and plugins. """
    # plugins dependencies
    install_dependencies()

    # git pull
    with cd('.vim'):
        print(green('Updating .vim folder'))
        git_pull()

        print(green('Updating submodules'))
        run('git submodule update --init')

    # plugins update
    cmd = 'vim +NeoBundleUpdate +qa!'
    run(cmd)
예제 #5
0
파일: admin.py 프로젝트: hso/magnetizer
def install_db_backups_manager():
    """ Installs project py-db-backup """

    if path_exists('py-db-backup'):
        update_manager = prompt(green('DB backups manager already installed. '
                                      'Would you like to update it?'),
                                default='Yes')
        if update_manager in ('Yes', 'yes', 'Y', 'y'):
            with cd('py-db-backup'):
                git_pull()

        return

    # install git if is not available
    git_install()

    print(green('Cloning py-db-backup repository.'))
    git_clone('git://github.com/magnet-cl/py-db-backup.git', 'py-db-backup')

    print(green('Installing py-db-backup'))
    with cd('py-db-backup'):
        cmd = './install.sh'
        run(cmd)
예제 #6
0
def install_db_backups_manager():
    """ Installs project py-db-backup """

    if path_exists('py-db-backup'):
        update_manager = prompt(green('DB backups manager already installed. '
                                      'Would you like to update it?'),
                                default='Yes')
        if update_manager in ('Yes', 'yes', 'Y', 'y'):
            with cd('py-db-backup'):
                git_pull()

        return

    # install git if is not available
    git_install()

    print(green('Cloning py-db-backup repository.'))
    git_clone('git://github.com/magnet-cl/py-db-backup.git', 'py-db-backup')

    print(green('Installing py-db-backup'))
    with cd('py-db-backup'):
        cmd = './install.sh'
        run(cmd)