Shotgun rsync added
Change-Id: I98f501cef6bfa258da9b650dd1020ab40c8d2518
This commit is contained in:
parent
b2441ab692
commit
da9bd2badd
|
@ -28,7 +28,7 @@ class DockerMcollectiveMixin(object):
|
|||
|
||||
|
||||
class RsyncAgent(DockerMcollectiveMixin, docker.RsyncCommand):
|
||||
"""Rsync files to the Docker container."""
|
||||
"""Rsync mcagent files to the Docker container."""
|
||||
@property
|
||||
def source_path(self):
|
||||
return '.'
|
||||
|
@ -40,3 +40,20 @@ class RsyncAgent(DockerMcollectiveMixin, docker.RsyncCommand):
|
|||
def post_sync(self, parsed_args):
|
||||
self.restart_container()
|
||||
|
||||
|
||||
class RsyncShotgun(DockerMcollectiveMixin, docker.RsyncCommand):
|
||||
"""Rsync shotgun files to the Docker container."""
|
||||
@property
|
||||
def source_path(self):
|
||||
return 'shotgun/shotgun'
|
||||
|
||||
@property
|
||||
def target_path(self):
|
||||
return 'usr/lib/python2.6/site-packages/shotgun'
|
||||
|
||||
def post_sync(self, parsed_args):
|
||||
self.restart_container()
|
||||
|
||||
|
||||
class Shell(DockerMcollectiveMixin, docker.ShellCommand):
|
||||
"""Shell into the container."""
|
||||
|
|
|
@ -28,6 +28,7 @@ from cliff import app
|
|||
from cliff import commandmanager
|
||||
|
||||
from fuel_dev_tools.docker import astute
|
||||
from fuel_dev_tools.docker import mcollective
|
||||
from fuel_dev_tools.docker import nailgun
|
||||
from fuel_dev_tools.docker import nginx
|
||||
from fuel_dev_tools.docker import postgres
|
||||
|
@ -57,6 +58,9 @@ COMMANDS = {
|
|||
|
||||
'mcagent-rsync': mcagent.Rsync,
|
||||
|
||||
'mcollective-rsync-shotgun': mcollective.RsyncShotgun,
|
||||
'mcollective-shell': mcollective.Shell,
|
||||
|
||||
'nailgun-id': nailgun.Id,
|
||||
'nailgun-config': nailgun.Config,
|
||||
'nailgun-db-reset': nailgun.DBReset,
|
||||
|
|
Loading…
Reference in New Issue