Skip to content

Commit

Permalink
fabricized
Browse files Browse the repository at this point in the history
  • Loading branch information
dmpeters committed Sep 3, 2012
1 parent 36ad665 commit 8a463c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fabfile/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ def init():
# Touch README
local('rm README.md')
readme = prompt('Enter breif description for README: ').lower()
local('echo "{}" > README.md'.format(readme))
local('echo "%s" > README.md' % (readme))

# Set Up App
app_name = prompt("Enter App Name: ").lower()
local("mkdir -p {}/{api,resources,services,tasks}".format(app_name))
local("cd {} && for DIR in $(find . -type d); do touch $DIR/__init__.py; done".format(app_name))
local("mkdir -p %s/{api,resources,services,tasks}" % (app_name))
local("cd %s && for DIR in $(find . -type d); do touch $DIR/__init__.py; done" % (app_name))

# Set Up Static Media
media = prompt("Setup Static Media (Y/N): ")
Expand All @@ -26,9 +26,9 @@ def init():
# Setup Git
local("rm -rf .git/ && git init && git add .")
commit = prompt("Git Commit Message: ").lower()
local("git commit -am {}".format(commit))
local("git commit -am %s" % (commit))
origin = prompt("Add Origin: ")
local("git remote add origin {} && git push -u origin master".format(origin))
local("git remote add origin %s && git push -u origin master" % (origin))


@task
Expand Down

0 comments on commit 8a463c6

Please sign in to comment.