Class: Skewer::Hooks
- Inherits:
-
Object
- Object
- Skewer::Hooks
- Defined in:
- lib/hooks.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
writeonly
Sets the attribute command.
Instance Method Summary collapse
-
#initialize(host_name) ⇒ Hooks
constructor
A new instance of Hooks.
- #run ⇒ Object
Constructor Details
#initialize(host_name) ⇒ Hooks
Returns a new instance of Hooks.
7 8 9 10 |
# File 'lib/hooks.rb', line 7 def initialize(host_name) @command = SkewerConfig.instance.get('hook') @host_name = host_name end |
Instance Attribute Details
#command=(value) ⇒ Object (writeonly)
Sets the attribute command
5 6 7 |
# File 'lib/hooks.rb', line 5 def command=(value) @command = value end |