Module: Ghundle::Config
Instance Attribute Summary collapse
-
#hooks_root ⇒ Object
Returns the value of attribute hooks_root.
Instance Method Summary collapse
Instance Attribute Details
#hooks_root ⇒ Object
Returns the value of attribute hooks_root.
5 6 7 |
# File 'lib/ghundle/config.rb', line 5 def hooks_root @hooks_root end |
Instance Method Details
#hook_path(hook_name) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/ghundle/config.rb', line 11 def hook_path(hook_name) if not hooks_root.directory? FileUtils.mkdir_p(hooks_root) end hooks_root.join(hook_name) end |