aboutsummaryrefslogtreecommitdiff
path: root/longboat
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2020-03-02 10:21:32 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2020-03-02 10:21:32 +0000
commitcd0f6b103553f547bc21a8447e785c31f7ce858c (patch)
tree9002b355cb4038f6c3e31d2e65ce8e74bceca3fa /longboat
parent6c192e01dad7e9947c466eff521fe22ac775fcd6 (diff)
Use classes properly
Diffstat (limited to 'longboat')
-rwxr-xr-xlongboat9
1 files changed, 6 insertions, 3 deletions
diff --git a/longboat b/longboat
index 3907d87..bf2c13d 100755
--- a/longboat
+++ b/longboat
@@ -2,9 +2,12 @@
$LOAD_PATH << './lib'
require 'longboat'
-require 'longboat/jobs'
+require 'longboat/jobs/slurm_job_states'
#require 'longboat/server'
-Longboat::Metrics.collect!
-puts Longboat::Metrics
+collector = Longboat::Collector.new
+Longboat::Jobs::SlurmJobStates.new(collector)
+
+collector.collect!
+puts collector.metrics
#Longboat::Server.serve!