]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/postgresql/libraries/postgresql.rb
Allow exim exporter to enumerate other processes
[chef.git] / cookbooks / postgresql / libraries / postgresql.rb
index feaa508b9c9ff5bccb5854e5694aba36bfa6085c..62188795bd3f3aa6d168e5b172bdae217533f250 100644 (file)
@@ -12,6 +12,10 @@ module OpenStreetMap
       @cluster = cluster
     end
 
       @cluster = cluster
     end
 
+    def version
+      @cluster.split("/").first.to_f
+    end
+
     def execute(options)
       # Create argument array
       args = []
     def execute(options)
       # Create argument array
       args = []