Sha256: 066500bd4d217d0e677d09a17f42b04c555e6a84d96aa375937c1d0b79e7fede

Contents?: true

Size: 676 Bytes

Versions: 52

Compression:

Stored size: 676 Bytes

Contents

class Configuration < CloudstackCli::Base

  desc 'list', 'list configurations'
  option :name, desc: "lists configuration by name"
  option :category, desc: "lists configurations by category"
  option :keyword, desc: "lists configuration by keyword"
  def list
    configs = client.list_configurations(options)
    if configs.size < 1
      say "No configuration found."
    else
      table = [%w(Name Category Value)]
      configs.each do |config|
        table << [
          config['name'],
          config['category'],
          config['value']
        ]
      end
      print_table table
      say "Total number of configurations: #{configs.size}"
    end
  end

end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
cloudstack-cli-1.6.10 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.9 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.8 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.7 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.6 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.5 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.4 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.3 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.2 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.6.0 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.13 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.12 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.10 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.9 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.8 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.7 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.6 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.5 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-1.5.4 lib/cloudstack-cli/commands/configuration.rb