Class: Ruboty::Niftycloud::Actions::RdbDbInstanceList
- Defined in:
- lib/ruboty/niftycloud/actions/rdb_db_instance_list.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#accounts, #computing, #current_account, #current_region, #initialize, #rdb
Constructor Details
This class inherits a constructor from Ruboty::Niftycloud::Actions::Base
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ruboty/niftycloud/actions/rdb_db_instance_list.rb', line 5 def call rdb.db_instances.each do |db_instance| # TODO: Type(master or replica) .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 |