Sha256: 557d2ad8d06b52771343f70427a732c8dfb621ddd703fda4bff07ff40064c37e

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloudstack-cli-0.0.1 lib/cloudstack-cli/commands/project.rb