Class: EY::Serverside::Slug::FailureHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/engineyard-serverside/slug/failure_handler.rb

Class Method Summary collapse

Instance Method Summary collapse

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

Instance Method Details

#call(data = {}) ⇒ Object


18
19
20
# File 'lib/engineyard-serverside/slug/failure_handler.rb', line 18

def call(data = {})
  Result::Failure.new(data)
end