Add config parser functionality
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
1
tests/_support_data/config/empty.cfg
Normal file
1
tests/_support_data/config/empty.cfg
Normal file
@@ -0,0 +1 @@
|
||||
# empty file with no directives
|
||||
20
tests/_support_data/config/invalid.cfg
Normal file
20
tests/_support_data/config/invalid.cfg
Normal file
@@ -0,0 +1,20 @@
|
||||
# cloner.cfg
|
||||
# main config
|
||||
# created at 2018-03-23 20:24:57
|
||||
invalid_option1
|
||||
invalid_option=2
|
||||
|
||||
# main url - url of main repo - just to clone
|
||||
cloner_repo_url=git@git.somerandomserver.test:/path
|
||||
|
||||
# project name (names of volumes are derrived from this
|
||||
cloner_project_name=some-random-project
|
||||
|
||||
# cloner interval (in minutes, default=0 - run always)
|
||||
cloner_interval=666
|
||||
|
||||
# do you need submodules support? (1/0)
|
||||
cloner_submodules=1
|
||||
|
||||
# max depth of submodule scan (default = unlimited, uncomment to use)
|
||||
cloner_submodule_depth=500000
|
||||
18
tests/_support_data/config/valid.cfg
Normal file
18
tests/_support_data/config/valid.cfg
Normal file
@@ -0,0 +1,18 @@
|
||||
# cloner.cfg
|
||||
# main config
|
||||
# created at 2018-03-23 20:24:57
|
||||
|
||||
# main url - url of main repo - just to clone
|
||||
cloner_repo_url=git@git.somerandomserver.test:/path
|
||||
|
||||
# project name (names of volumes are derrived from this
|
||||
cloner_project_name=some-random-project
|
||||
|
||||
# cloner interval (in minutes, default=0 - run always)
|
||||
cloner_interval=666
|
||||
|
||||
# do you need submodules support? (1/0)
|
||||
cloner_submodules=1
|
||||
|
||||
# max depth of submodule scan (default = unlimited, uncomment to use)
|
||||
cloner_submodule_depth=500000
|
||||
Reference in New Issue
Block a user