[More Detail] [Collapse All]
Feature: Initialize default directories and example configuration


Create default directories ('cnf', 'src', 'src/extend', 'gen',
'cache'). Create example templates in 'cnf' -directory

Directory location can be overridden using command line
option 'src-dir'
features/002-init/init-directories.feature
- Scenario: Create default directories
link

Running command `sbuilder.rb init` creates default directories,
and example templates.
features/002-init/init-directories.feature:11
Given the following directories should not exist:
directory
cnf
src
src/extend
gen
cache
When I successfully run `sbuilder.rb init`
And the following directories should exist:
directory
cnf
src
src/extend
gen
cache
And the following files should exist:
Example configuration files
cnf/extend_customer_run1.yaml.example
cnf/extend_customer_run2.yaml.example
cnf/interface_customer.yaml.example
cnf/resolver_customer.yaml.example
cnf/sbuilder.yaml.example
- Scenario: Option --src_dir defines another location for code repository
link

Running  `sbuilder.rb init --src-dir src_configured`
features/002-init/init-directories.feature:42
Given I remove the directory "src_configured" with full force
When I successfully run `sbuilder.rb init --src-dir src_configured`
Then the exit status should be 0
And a directory named "src_configured" should exist
And a directory named "src_configured/extend" should exist