diff --git a/src/main/ruby/lib/merritt_zk_job.rb b/src/main/ruby/lib/merritt_zk_job.rb index 55a2f34..aba6cba 100644 --- a/src/main/ruby/lib/merritt_zk_job.rb +++ b/src/main/ruby/lib/merritt_zk_job.rb @@ -197,8 +197,9 @@ def title end class LegacyIngestJob < LegacyItem - def self.dir - '/ingest' + DIR = '/ingest' + def dir + DIR end def status_vals diff --git a/src/main/ruby/lib/merritt_zk_queue_item.rb b/src/main/ruby/lib/merritt_zk_queue_item.rb index c810431..a110700 100644 --- a/src/main/ruby/lib/merritt_zk_queue_item.rb +++ b/src/main/ruby/lib/merritt_zk_queue_item.rb @@ -122,8 +122,9 @@ def data_prop(prop, defval) end class LegacyItem + DIR = '/na' def dir - '/na' + DIR end def status_vals