Module: GitHubWebHooksReceiver::PathResolver

Included in:
App, Repository
Defined in:
lib/github-web-hooks-receiver/path-resolver.rb

Instance Method Summary collapse

Instance Method Details

#base_dirObject



21
22
23
24
25
# File 'lib/github-web-hooks-receiver/path-resolver.rb', line 21

def base_dir
  @base_dir ||=
    @options[:base_dir] ||
    File.expand_path(File.join(File.dirname(__FILE__), ".."))
end

#path(*paths) ⇒ Object



27
28
29
# File 'lib/github-web-hooks-receiver/path-resolver.rb', line 27

def path(*paths)
  File.expand_path(File.join(base_dir, *paths))
end