commands for restructuring and furlough

workspace
Brendan Howell 8 years ago
parent 993c7c3c4e
commit a575c9cea0

@ -1,4 +1,5 @@
import json import json
import subprocess
import code128 import code128
@ -89,6 +90,29 @@ class InhumanResources(Bureau):
""" """
self.print_full("menu.html", menu=self.menu) self.print_full("menu.html", menu=self.menu)
@add_command("update", "Restructure Organization")
def update(self):
"""
Restructure the organization. This may include firing, hiring,
refinancing and organizational changes. This will update the
Office to the latest software but it may be disruptive to your
current personal and social situation. After pulling the latest
updates, all bureaus other than management will be restarted.
"""
subprocess.call("git pull")
self.restart()
@add_command("restart", "Furlough")
def restart(self):
"""
Send the entire organization on a very short unpaid vacation. This
will restart all bureaus, so it may cause disruption, loss of work
and other psycho-social side effects of a loss of state. It may
also help restore a messed up office to normal operation.
"""
# TODO: find the PID of mgmt and send it a HUP signal
pass
def main(): def main():
hr = InhumanResources() hr = InhumanResources()

Loading…
Cancel
Save