"""
Templates
"""

deploy_file_sample = '''"""
py_mina - deployfile sample
"""

from py_mina import *
from py_mina.tasks import git_clone, link_shared_paths


# Settings - remote server


set('user', 'deploy')
set('hosts', ['localhost'])


# Settings - application


set('deploy_to', '/var/www/example_application')
set('repository', 'https://github.com/py-mina-deploy/py-mina')
set('branch', 'master')
set('shared_dirs', ['logs', 'tmp'])
set('shared_files', [ 'example_config.yml' ])


# Tasks


@task
def restart():
	"""
	Restarts application on remote server
	"""

	run('echo "Restarting application"')


@deploy_task(on_launch=restart)
def deploy():
	"""
	Runs deploy process on remote server
	"""

	git_clone()
	link_shared_paths()

	run('echo "Deploying application"')

	# ... your deploy commands ...


@setup_task
def setup():
	"""
	Runs setup process on remote server
	"""

	run('echo "Deploy setup"')

	# ... your setup commands ...
'''
@@ -566,44 +566,12 @@
 %22%0A%0A%09
-run('echo %22Restarting application%22')
+pass
 %0A%0A%0A@
@@ -703,77 +703,31 @@
 ()%0A%0A
+%0A
 %09run('
-echo %22Deploying application%22')%0A%0A%09# ... your deploy commands ...
+pwd && ls -lah')
 %0A%0A%0A@
@@ -803,66 +803,12 @@
 %22%0A%0A%09
-run('echo %22Deploy setup%22')%0A%0A%09# ... your setup commands ...
+pass
 %0A'''

remove comments