lib/flydata/api/redshift_cluster.rb in flydata-0.7.17 vs lib/flydata/api/redshift_cluster.rb in flydata-0.7.18
- old
+ new
@@ -7,11 +7,13 @@
@model_name = 'redshift_cluster'
@url_path = "/#{@model_name.pluralize}"
super
end
- def run_query(sql)
- @client.post("#{@url_path}/query", nil, {redshift_query: {body: sql}})
+ def show_default
+ # currently one user has one redshift_cluster
+ url_path = "#{@url_path}/show_default?password_required=1"
+ @client.get(url_path)
end
end
end
end