Nailgun rsync: add *.pyc and test excludes
Change-Id: I03196c566179d4439300811a2b8dc8bae8f8e4d6
This commit is contained in:
parent
81779e3d18
commit
12a1e707dd
|
@ -101,6 +101,11 @@ class Rsync(DockerNailgunMixin, docker.RsyncCommand):
|
|||
def target_path(self):
|
||||
return 'usr/lib/python2.6/site-packages/nailgun'
|
||||
|
||||
def build_app_args_target(self, target):
|
||||
target, args = super(Rsync, self).build_app_args_target(target)
|
||||
|
||||
return target, ['--exclude=*.pyc', '--exclude=test'] + args
|
||||
|
||||
def post_sync(self, parsed_args):
|
||||
self.restart_container()
|
||||
|
||||
|
|
Loading…
Reference in New Issue