Class: GammaReplication::Hook
- Inherits:
-
Object
- Object
- GammaReplication::Hook
- Defined in:
- lib/gamma_replication/hook.rb
Instance Attribute Summary collapse
-
#apply ⇒ Object
Returns the value of attribute apply.
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#hook_type ⇒ Object
Returns the value of attribute hook_type.
-
#root_dir ⇒ Object
Returns the value of attribute root_dir.
-
#script_path ⇒ Object
Returns the value of attribute script_path.
Instance Method Summary collapse
Instance Attribute Details
#apply ⇒ Object
Returns the value of attribute apply.
5 6 7 |
# File 'lib/gamma_replication/hook.rb', line 5 def apply @apply end |
#column_name ⇒ Object
Returns the value of attribute column_name.
5 6 7 |
# File 'lib/gamma_replication/hook.rb', line 5 def column_name @column_name end |
#hook_type ⇒ Object
Returns the value of attribute hook_type.
5 6 7 |
# File 'lib/gamma_replication/hook.rb', line 5 def hook_type @hook_type end |
#root_dir ⇒ Object
Returns the value of attribute root_dir.
5 6 7 |
# File 'lib/gamma_replication/hook.rb', line 5 def root_dir @root_dir end |
#script_path ⇒ Object
Returns the value of attribute script_path.
5 6 7 |
# File 'lib/gamma_replication/hook.rb', line 5 def script_path @script_path end |
Instance Method Details
#execute_script(record) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/gamma_replication/hook.rb', line 7 def execute_script(record) validate_script_exists result = record.dup load_script_file execute_hook(result) end |