Skip to content

Commit

Permalink
added request for sharing cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
ulandj committed Sep 1, 2015
1 parent 4ebe2f8 commit b40af29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/iron_worker_ng/api_client.rb
Expand Up @@ -175,5 +175,9 @@ def clusters_update(cluster_id, options = {})
def clusters_delete(cluster_id)
parse_response(delete("clusters/#{cluster_id}"))
end

def clusters_share(cluster_id, options = {})
parse_response(post("clusters/#{cluster_id}/share", options))
end
end
end
6 changes: 6 additions & 0 deletions lib/iron_worker_ng/client.rb
Expand Up @@ -480,6 +480,12 @@ def clusters_delete(cluster_id)
OpenStruct.new(res)
end

def clusters_share(cluster_id, params = {})
IronCore::Logger.debug 'IronWorkerNG', "Calling clusters.share with params='#{params.to_s}'"
res = @api.clusters_share(cluster_id, params)
OpenStruct.new(res)
end

def params_for_legacy(code_name, params = {})
if params.is_a?(String)
params = JSON.parse(params)
Expand Down

0 comments on commit b40af29

Please sign in to comment.