Sha256: 67fbe186ec4ab4bf613100e8ccee2615351d538a7edcea037e0a44c34a1b47e0

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

class Project < Thor

  desc "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.3 lib/cloudstack-cli/commands/project.rb
cloudstack-cli-0.0.2 lib/cloudstack-cli/commands/project.rb