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']