class EY::Serverside::Callbacks::Executor::Base
Attributes
config[R]
hook[R]
shell[R]
Public Class Methods
execute(config, shell, hook)
click to toggle source
# File lib/engineyard-serverside/callbacks/executor/base.rb, line 13 def self.execute(config, shell, hook) new(config, shell, hook).execute end
new(config, shell, hook)
click to toggle source
# File lib/engineyard-serverside/callbacks/executor/base.rb, line 17 def initialize(config, shell, hook) @config = config @shell = shell @hook = hook end
Public Instance Methods
execute()
click to toggle source
# File lib/engineyard-serverside/callbacks/executor/base.rb, line 23 def execute call.or_else {|payload| handle_failure(payload)} end
handle_failure(payload = {})
click to toggle source
# File lib/engineyard-serverside/callbacks/executor/base.rb, line 27 def handle_failure(payload = {}) raise "Unimplemented Hook Executor!" end
hook_path()
click to toggle source
# File lib/engineyard-serverside/callbacks/executor/base.rb, line 35 def hook_path hook.path end
paths()
click to toggle source
# File lib/engineyard-serverside/callbacks/executor/base.rb, line 31 def paths config.paths end