Class: Comodule::Deployment::Helper::Aws::Rds::Service

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/comodule/deployment/helper/aws/rds.rb

Instance Method Summary collapse

Methods included from Base

included

Instance Method Details

#db(db_instance_identifier) ⇒ Object



16
17
18
# File 'lib/comodule/deployment/helper/aws/rds.rb', line 16

def db(db_instance_identifier)
  ::Comodule::Deployment::Helper::Aws::Rds::Db.new(owner, db_instance_identifier)
end

#latest_automated_snapshotObject



20
21
22
23
24
# File 'lib/comodule/deployment/helper/aws/rds.rb', line 20

def latest_automated_snapshot
  if config.db && config.db.master && !config.db.snapshot_identifier
    config.db.snapshot_identifier = db(config.db.master).latest_automated_snapshot
  end
end