public override void Push(Action <string> output = null, Action <string> error = null) { try { string jobName = GetArgument("job", "Please enter the name of the job to push."); JobConf conf = JobManagerService.GetJob(jobName); ProxyFactory factory = new ProxyFactory(); string remote = Config.Current["Server"].Or("bambot.bamapps.net"); int port = Config.Current["Port"].Or("80").ToInt(); JobManagerService remoteSvc = factory.GetProxy <JobManagerService>(); remoteSvc.SaveJob(conf); output($"Job {jobName} pushed to {remote}:{port}"); } catch (Exception ex) { error(ex.Message); Exit(1); } }