Sha256: 6100a8d1081e2eabed60758ec4d86812ed1eeff05241353060b10e45930426c6

Contents?: true

Size: 589 Bytes

Versions: 18

Compression:

Stored size: 589 Bytes

Contents

class Configuration < CloudstackCli::Base

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

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cloudstack-cli-0.15.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.15.0 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.14.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.14.0 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.13.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.13.0 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.12.3 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.12.2 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.12.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.12.0 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.11.2 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.11.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.11.0 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.10.2 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.10.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.10.0 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.9.1 lib/cloudstack-cli/commands/configuration.rb
cloudstack-cli-0.9.0 lib/cloudstack-cli/commands/configuration.rb