Class: Heroku::Command::Rds::RdsProxy
- Inherits:
-
Object
- Object
- Heroku::Command::Rds::RdsProxy
- Defined in:
- lib/heroku/commands/rds.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ RdsProxy
constructor
A new instance of RdsProxy.
Constructor Details
#initialize(*args) ⇒ RdsProxy
Returns a new instance of RdsProxy.
338 339 340 |
# File 'lib/heroku/commands/rds.rb', line 338 def initialize(*args) @instance = Fog::AWS::RDS.new(*args) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object (private)
343 344 345 346 347 348 349 |
# File 'lib/heroku/commands/rds.rb', line 343 def method_missing(sym, *args, &block) begin @instance.send(sym, *args, &block) rescue Excon::Errors::HTTPStatusError => error raise CommandFailed, Nokogiri::XML.parse(error.response.body).css('Message').first.content end end |