Class: Repository::ConfigBuilder
- Inherits:
-
Object
- Object
- Repository::ConfigBuilder
- Defined in:
- lib/devlogs/repository/config_builder.rb
Defined Under Namespace
Classes: DraftConfig
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(dirpath) ⇒ ConfigBuilder
constructor
A new instance of ConfigBuilder.
Constructor Details
#initialize(dirpath) ⇒ ConfigBuilder
Returns a new instance of ConfigBuilder.
5 6 7 8 9 10 11 |
# File 'lib/devlogs/repository/config_builder.rb', line 5 def initialize(dirpath) @config_store = if dirpath Repository::ConfigStore.new(dir: dirpath) else Repository::ConfigStore.new end end |
Instance Method Details
#build ⇒ Object
13 14 15 16 17 |
# File 'lib/devlogs/repository/config_builder.rb', line 13 def build config_info = prompt_for_info DraftConfig.new(@config_store, config_info) end |