Class: Repository::Initializer
- Inherits:
-
Object
- Object
- Repository::Initializer
- Defined in:
- lib/devlogs/repository/initializer.rb
Class Method Summary collapse
-
.run(opts = {}) ⇒ Object
Creates a new devlogs repository at the provided path.
Class Method Details
.run(opts = {}) ⇒ Object
Creates a new devlogs repository at the provided path
11 12 13 14 15 16 17 |
# File 'lib/devlogs/repository/initializer.rb', line 11 def self.run(opts = {}) new_config = Repository::ConfigBuilder.new(opts[:dirpath]) draft = new_config.build draft.save!(force: opts[:force]) end |