Class: Monolith::BranchPreparer
- Inherits:
-
Object
- Object
- Monolith::BranchPreparer
- Extended by:
- Forwardable
- Defined in:
- lib/monolith/branch_preparer.rb
Constant Summary collapse
- COMMIT =
"[monolith] Preparing %s"
Instance Method Summary collapse
-
#initialize(repo, branch) ⇒ BranchPreparer
constructor
A new instance of BranchPreparer.
- #prepare ⇒ Object
Constructor Details
#initialize(repo, branch) ⇒ BranchPreparer
Returns a new instance of BranchPreparer.
9 10 11 12 |
# File 'lib/monolith/branch_preparer.rb', line 9 def initialize(repo, branch) @repo = repo @branch = branch end |
Instance Method Details
#prepare ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/monolith/branch_preparer.rb', line 14 def prepare within_working_dir do checkout_branch hard_reset_branch create_subdir move_files_under_subdir commit_changes end end |