Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (43 sloc) 1.273 kB
import os
import deploytool.tasks as tasks
project_items = {
'admin_email': 'info@example.com',
'project_name': 'myproject',
'vhosts_path': os.path.join('/', 'path', 'to', 'projects'),
'provisioning_user': 'sudoer',
'hosts': ['192.168.1.1', ],
}.items()
local_items = {
'project_name_prefix': 'd-',
'environment': 'local',
'hosts': ['127.0.0.1', ],
}.items()
staging_items = {
'compass_version': '0.12.2',
'website_name': 'staging.example.com',
'project_name_prefix': 's-',
'environment': 'staging',
}.items()
live_items = {
'compass_version': '0.12.2',
'website_name': 'www.example.com',
'project_name_prefix': 'l-',
'environment': 'live',
}.items()
# hosts
staging = tasks.remote.RemoteHost(settings=dict(project_items + staging_items))
live = tasks.remote.RemoteHost(settings=dict(project_items + live_items))
# deployment
deploy = tasks.remote.Deployment()
rollback = tasks.remote.Rollback()
status = tasks.remote.Status()
size = tasks.remote.Size()
diff = tasks.remote.Diff()
media = tasks.remote.Media()
database = tasks.remote.Database()
test = tasks.remote.Test()
# provisioning
setup = tasks.provision.Setup()
keys = tasks.provision.Keys()
# generic
list_tasks = tasks.generic.ListTasks()
Jump to Line
Something went wrong with that request. Please try again.