diff options
author | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-03-02 10:21:32 +0000 |
---|---|---|
committer | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-03-02 10:21:32 +0000 |
commit | cd0f6b103553f547bc21a8447e785c31f7ce858c (patch) | |
tree | 9002b355cb4038f6c3e31d2e65ce8e74bceca3fa /longboat | |
parent | 6c192e01dad7e9947c466eff521fe22ac775fcd6 (diff) |
Use classes properly
Diffstat (limited to 'longboat')
-rwxr-xr-x | longboat | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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! |