Skip to content

Commit

Permalink
add version of cloudstack management server, ex: @client.version
Browse files Browse the repository at this point in the history
  • Loading branch information
pdion891 committed Nov 15, 2014
1 parent c50cbed commit 8c0a77e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cloudstack_ruby_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ def self.API_LIST
@@API_LIST
end

## CloudStack management server version
def version
self.list_capabilities["capability"]["cloudstackversion"]
end

## login api command
def login(params = {})
auth_request(params, "login")
Expand Down

0 comments on commit 8c0a77e

Please sign in to comment.