Sha256: 76892b1bf26247a5331a3942386c96505e5cd1d4c28742c8bbe702574dd3f5a7

Contents?: true

Size: 396 Bytes

Versions: 12

Compression:

Stored size: 396 Bytes

Contents

class Project < CloudstackCli::Base

  desc "list", "list projects"
  def list
    projects = client.list_projects
    if projects.size < 1
      puts "No projects found"
    else
      table = [["Name", "Displaytext", "Domain"]]
      projects.each do |project|
        table << [project['name'], project['displaytext'], project['domain']]
      end
      print_table(table)
    end
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cloudstack-cli-0.3.1 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.2.2 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.2.1 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.2.0 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.7 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.6 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.5 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.4 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.3 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.2 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.1 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.1.0 lib/cloudstack-cli/commands/project.rb