Sha256: dea7cebbc2fde70702b471a270d267027945767ecfb44a030f175203e6b7399b
Contents?: true
Size: 552 Bytes
Versions: 60
Compression:
Stored size: 552 Bytes
Contents
module CloudstackClient module Project ## # Get project by name. def get_project(name) params = { 'command' => 'listProjects', 'name' => name, 'listall' => true, } json = send_request(params) json['project'] ? json['project'].first : nil end ## # Lists projects. def list_projects params = { 'command' => 'listProjects', 'listall' => true, } json = send_request(params) json['project'] || [] end end end
Version data entries
60 entries across 60 versions & 3 rubygems