Page MenuHomePhabricator
Paste P45884

quick mock of deploy cookbook
ActivePublic

Authored by jbond on Mar 16 2023, 10:05 AM.
Tags
None
Referenced Files
F36914246: quick mock of deploy cookbook
Mar 16 2023, 10:05 AM
Subscribers
None
class DeployExtras(SREBatchBase):
def get_runner(self, args):
return DeployExtrasRunner(args, self.spicerack)
class DeployExtrasRunner(SREBatchRunnerBase):
@property
def allowed_aliases(self):
return ['netbox', 'netbox-next']
def restart_daemons(self):
return ['netbox-uwsgi']
@property
def pre_scripts(self):
['git -C /srv/deployment/netbox-extras pull --ff-only']