Module: Ghundle::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/ghundle/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hooks_rootObject

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