Class: EY::Serverside::Slug::FailureHandler
- Inherits:
-
Object
- Object
- EY::Serverside::Slug::FailureHandler
- Defined in:
- lib/engineyard-serverside/slug/failure_handler.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call(data = {}) ⇒ Object
-
#initialize(config, shell, servers) ⇒ FailureHandler
constructor
A new instance of FailureHandler.
Constructor Details
#initialize(config, shell, servers) ⇒ FailureHandler
Returns a new instance of FailureHandler.
12 13 14 15 16 |
# File 'lib/engineyard-serverside/slug/failure_handler.rb', line 12 def initialize(config, shell, servers) @config = config @shell = shell @servers = servers end |
Class Method Details
.handle(data = {}) ⇒ Object
8 9 10 |
# File 'lib/engineyard-serverside/slug/failure_handler.rb', line 8 def self.handle(data = {}) new(data[:config], data[:shell], data[:servers]).call(data) end |