Sha256: 8618d8acede3fcbac56448f0b1b0ef84d8daa29aa65ae1425492534b3a89faa3

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

module Ruboty
  module Niftycloud
    module Actions
      class RdbDbInstanceList < Base
        def call
          rdb.db_instances.each do |db_instance|
            # TODO: Type(master or replica)
            message.reply("#{db_instance['DBInstanceIdentifier']} #{db_instance['DBInstanceClass']} #{db_instance['Engine']}#{db_instance['EngineVersion']} #{db_instance['DBInstanceStatus']} #{db_instance['AllocatedStorage']} #{db_instance['AvailabilityZone']} #{db_instance['Endpoint']['Address']} #{db_instance['Endpoint']['NiftyPrivateAddress']}")
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruboty-niftycloud-0.0.5 lib/ruboty/niftycloud/actions/rdb_db_instance_list.rb
ruboty-niftycloud-0.0.4 lib/ruboty/niftycloud/actions/rdb_db_instance_list.rb
ruboty-niftycloud-0.0.3 lib/ruboty/niftycloud/actions/rdb_db_instance_list.rb
ruboty-niftycloud-0.0.2 lib/ruboty/niftycloud/actions/rdb_db_instance_list.rb
ruboty-niftycloud-0.0.1 lib/ruboty/niftycloud/actions/rdb_db_instance_list.rb