class GitHooks::Configurations
Attributes
config_file[R]
git_repository[R]
Public Class Methods
new( config_file: default_config_file, git_repository: default_git_repository )
click to toggle source
Calls superclass method
# File lib/git_hooks/configurations.rb, line 9 def initialize( config_file: default_config_file, git_repository: default_git_repository ) @config_file = config_file @git_repository = git_repository super(config_file) end
Private Instance Methods
default_config_file()
click to toggle source
# File lib/git_hooks/configurations.rb, line 21 def default_config_file ConfigFile.new('.git_hooks.yml') end
default_git_repository()
click to toggle source
# File lib/git_hooks/configurations.rb, line 25 def default_git_repository Git.new('.') end