This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import env | |
from fabric import tasks | |
from functools import wraps | |
def _wrap_as_new(original, new): | |
if isinstance(original, tasks.Task): | |
return tasks.WrappedCallableTask(new) | |
return new | |
def strict_roles(*role_list): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Modified version from: | |
http://stackoverflow.com/questions/298314/find-files-in-git-repo-over-x-megabytes-that-dont-exist-in-head | |
Examples: | |
# Commits bigger than 1MB | |
python git-big.py 1048576 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def deploy(): | |
env.release = time.strftime('%Y%m%d%H%M%S') | |
upload_tar_from_git() | |
symlink_current_release() | |
restart_webserver() | |
def deploy_version(version): | |
"Specify a specific version to be made live" | |
require('hosts', provided_by=[localhost,webserver]) | |
require('releases') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.facebox([ | |
"<h1>Waitlist Availability Only</h1>", | |
"<p>If you continue this booking, the booking will be placed on a waitlist until", | |
" there is room for all passengers.", | |
"</p>" | |
].join('')); |
NewerOlder