X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a439230240ac55952f5bbf40312c3116674a9cd5..3903aeca9d5b355fa9745f7f6e7358d6e1ba5d5d:/cookbooks/postgresql/libraries/postgresql.rb?ds=sidebyside diff --git a/cookbooks/postgresql/libraries/postgresql.rb b/cookbooks/postgresql/libraries/postgresql.rb index 70d38135b..62188795b 100644 --- a/cookbooks/postgresql/libraries/postgresql.rb +++ b/cookbooks/postgresql/libraries/postgresql.rb @@ -1,6 +1,6 @@ require "chef/mixin/shell_out" -class Chef +module OpenStreetMap class PostgreSQL include Chef::Mixin::ShellOut @@ -12,6 +12,10 @@ class Chef @cluster = cluster end + def version + @cluster.split("/").first.to_f + end + def execute(options) # Create argument array args = []