Class: Rundock::Hook::Base

Inherits:
Object show all
Defined in:
lib/rundock/hook/base.rb

Direct Known Subclasses

File

Constant Summary collapse

HookNotImplementedError =
Class.new(NotImplementedError)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, contents = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/rundock/hook/base.rb', line 9

def initialize(name, contents = {})
  @name = name
  @contents = contents
end

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents.



7
8
9
# File 'lib/rundock/hook/base.rb', line 7

def contents
  @contents
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/rundock/hook/base.rb', line 6

def name
  @name
end

Instance Method Details

#hook(operation_attributes = [], log_buffer = []) ⇒ Object



14
15
16
# File 'lib/rundock/hook/base.rb', line 14

def hook(operation_attributes = [], log_buffer = [])
  raise HookNotImplementedError
end