X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/84f17c000a6997b9736011730c5764b09921c6f7..b05327977edf4a5fe12eae584413c29460db5d57:/cookbooks/postgresql/libraries/postgresql.rb?ds=sidebyside diff --git a/cookbooks/postgresql/libraries/postgresql.rb b/cookbooks/postgresql/libraries/postgresql.rb index feaa508b9..62188795b 100644 --- a/cookbooks/postgresql/libraries/postgresql.rb +++ b/cookbooks/postgresql/libraries/postgresql.rb @@ -12,6 +12,10 @@ module OpenStreetMap @cluster = cluster end + def version + @cluster.split("/").first.to_f + end + def execute(options) # Create argument array args = []