Class: Ruboty::Niftycloud::Actions::RdbDbInstanceShow

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/niftycloud/actions/rdb_db_instance_show.rb

Constant Summary

Constants inherited from Base

Base::NAMESPACE

Instance Attribute Summary

Attributes inherited from Base

#message

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

#callObject



5
6
7
8
9
10
# File 'lib/ruboty/niftycloud/actions/rdb_db_instance_show.rb', line 5

def call
  db_instance = rdb.db_instances.find {|db_instance| db_instance['DBInstanceIdentifier'] == message[:db_instance_id] }
  db_instance.each do |k, v|
    message.reply "#{k}: #{v}"
  end
end