def create(path): "Creates a new project at the given path." if os.path.exists(path): if raw_input('Path %s exists, move aside (y/n): ' % path) == 'y': os.rename(path, '%s.%s.moved' % (path, int(time.time()))) else: sys.exit() site = cactus.Site(path) site.bootstrap()
def serve(path, port=8000, browser=True): "Serve the project and watch changes" site = cactus.Site(path) site.verify() site.serve(port=port, browser=browser)
def deploy(path): "Upload the project to S3" site = cactus.Site(path) site.verify() site.upload()
def domain_list(path, config): site = cactus.Site(path, config) site.domain_list()
def build(path): "Build a cactus project" site = cactus.Site(path) site.verify() site.build()
def domain_setup(path, config): site = cactus.Site(path, config) site.domain_setup()
def serve(path, config, port, browser): """Serve the project and watch changes""" site = cactus.Site(path, config) site.serve(port=port, browser=browser)
def make_messages(path, config): """ Create the list of translation files for the site """ site = cactus.Site(path, config) site.make_messages()
def deploy(path, config): """Upload the project to S3""" site = cactus.Site(path, config) site.upload()
def build(path, config): """Build a cactus project""" site = cactus.Site(path, config) site.build()