Class: GitHooks::Configurations

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/git_hooks/configurations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_file: ConfigFile.new('.git_hooks.yml'), git_repository: Git.new('.')) ⇒ Configurations

Returns a new instance of Configurations.



12
13
14
15
16
17
18
# File 'lib/git_hooks/configurations.rb', line 12

def initialize(
  config_file: ConfigFile.new('.git_hooks.yml'),
  git_repository: Git.new('.')
)
  @config_file = config_file
  @git_repository = git_repository
end

Instance Attribute Details

#config_fileObject (readonly)

Returns the value of attribute config_file.



8
9
10
# File 'lib/git_hooks/configurations.rb', line 8

def config_file
  @config_file
end

#git_repositoryObject (readonly)

Returns the value of attribute git_repository.



8
9
10
# File 'lib/git_hooks/configurations.rb', line 8

def git_repository
  @git_repository
end