Class: Project

Inherits:
Thor
  • Object
show all
Defined in:
lib/cloudstack-cli/commands/project.rb

Instance Method Summary collapse

Instance Method Details

#listObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/cloudstack-cli/commands/project.rb', line 4

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