|
6 | 6 |
|
7 | 7 | fromjinja2importTemplate |
8 | 8 |
|
9 | | -fromvmimportreload_unicorn |
| 9 | +importvm |
10 | 10 |
|
11 | 11 | defvalidate_classes(campaign_class): |
12 | 12 | """Checks that the campaign class is valid""" |
@@ -46,12 +46,12 @@ def deploy_to_homepage(): |
46 | 46 | remote_filename='/var/apps/frontend/app/views/root/_campaign_notification.html.erb' |
47 | 47 | put(StringIO.StringIO(contents),remote_filename,use_sudo=True,mirror_local_mode=True) |
48 | 48 | sudo('chown deploy:deploy %s'%remote_filename) |
49 | | -execute(reload_unicorn,name='frontend') |
| 49 | +execute(vm.reload_unicorn,name='frontend') |
50 | 50 |
|
51 | 51 | @task |
52 | 52 | @roles('class-frontend') |
53 | 53 | defremove_from_homepage(): |
54 | 54 | remote_filename='/var/apps/frontend/app/views/root/_campaign_notification.html.erb' |
55 | 55 | put(StringIO.StringIO(''),remote_filename,use_sudo=True,mirror_local_mode=True) |
56 | 56 | sudo('chown deploy:deploy %s'%remote_filename) |
57 | | -execute(reload_unicorn,name='frontend') |
| 57 | +execute(vm.reload_unicorn,name='frontend') |