lib/stacksondeck/app.rb in stacksondeck-1.0.4 vs lib/stacksondeck/app.rb in stacksondeck-1.0.5

- old
+ new

@@ -25,10 +25,11 @@ end get '/' do content_type :yaml + last_modified @@last_modified @@db_dump end @@ -49,10 +50,11 @@ def self.open! reopen! log.info event: 'open!', db: settings.database @@db_dump = YAML.dump db_copy + @@last_modified = Time.now end def self.reopen! old_db = @@db if defined? @@db @@ -123,9 +125,11 @@ end reopen! @@db_dump = YAML.dump node_resources + + @@last_modified = Time.now log.info event: 'refreshed!', elapsed: (Time.now - started) return node_resources \ No newline at end of file