Exemple #1
0
    def test_git(self):
        dirname = "/tmp/skeleton-git-test"
        os.mkdir(dirname)

        with fabric.api.lcd(dirname):
            git(True)

            self.assertTrue(os.path.exists(os.path.join(dirname, ".git")))

        if os.path.exists(dirname):
            shutil.rmtree(dirname)
Exemple #2
0
def setup(version='latest'):
    """Setup a new WordPress project"""

    if options.get('project.name', 'example.com') == 'example.com':
        abort('Please create or update your skeleton.json file.')

    wordpress(version)
    git(force=True)

    vhost(options['project.name'], os.getcwd())

    puts("\nThat's all. Have fun!")