lib/cloudstack-cli/commands/project.rb in cloudstack-cli-0.3.7 vs lib/cloudstack-cli/commands/project.rb in cloudstack-cli-0.3.8
- old
+ new
@@ -1,6 +1,19 @@
class Project < CloudstackCli::Base
+ desc "show NAME", "show detailed infos about a project"
+ option :project
+ def show(name)
+ unless project = client.get_project(name)
+ puts "No project with name #{name} found."
+ else
+ project.each do |key, value|
+ say "#{key}: ", :yellow
+ say "#{value}"
+ end
+ end
+ end
+
desc "list", "list projects"
def list
projects = client.list_projects
if projects.size < 1
puts "No projects found."
\ No newline at end of file