module GitHubWebHooksReceiver::PathResolver
Public Instance Methods
base_dir()
click to toggle source
# File lib/github-web-hooks-receiver/path-resolver.rb, line 20 def base_dir @base_dir ||= @options[:base_dir] || File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) end
path(*paths)
click to toggle source
# File lib/github-web-hooks-receiver/path-resolver.rb, line 26 def path(*paths) File.expand_path(File.join(base_dir, *paths)) end