class Project < Thor desc "list", "list projects" def list cs_cli = CloudstackCli::Helper.new projects = cs_cli.projects if projects.size < 1 puts "No projects found" else projects.each do |project| puts "#{project['name']} - #{project['displaytext']} - #{project['domain']}" end end end end