Class: Monolith::RepositoryCreator
- Inherits:
-
Object
- Object
- Monolith::RepositoryCreator
- Extended by:
- Forwardable
- Defined in:
- lib/monolith/repository_creator.rb
Constant Summary collapse
- BRANCH =
"monolith"- COMMIT =
"[monolith] Initial commit"
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(repo) ⇒ RepositoryCreator
constructor
A new instance of RepositoryCreator.
Constructor Details
#initialize(repo) ⇒ RepositoryCreator
Returns a new instance of RepositoryCreator.
10 11 12 |
# File 'lib/monolith/repository_creator.rb', line 10 def initialize(repo) @repo = repo end |
Instance Method Details
#create ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/monolith/repository_creator.rb', line 14 def create within_working_dir do initialize_git_repo generate_first_commit checkout_monolith_branch end end |