Sha256: d093bcd409ebf2e7727af8a3358ff6c4f11c0dfef16380e357fd1d0a9136cf6e
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
class Project < Thor desc "project list", "list projects" def list cs_cli = CloudstackCli::Helper.new(options[:config]) 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-cli-0.0.5 | lib/cloudstack-cli/commands/project.rb |
cloudstack-cli-0.0.4 | lib/cloudstack-cli/commands/project.rb |