splits up castle commit from castle push for more fine-grained control

This commit is contained in:
Jason Buckner
2012-11-24 23:18:48 -08:00
committed by thilko
parent 5e9d134021
commit 123e6cf82d
3 changed files with 23 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ To pull your castle (or all castles):
homesick pull --all|CASTLE homesick pull --all|CASTLE
To commit your castle's changes:
homesick commit CASTLE
To push your castle: To push your castle:
homesick push CASTLE homesick push CASTLE

View File

@@ -79,6 +79,12 @@ class Homesick < Thor
end end
desc "commit CASTLE", "Commit the specified castle's changes"
def commit(name)
commit_castle name
end
desc "push CASTLE", "Push the specified castle" desc "push CASTLE", "Push the specified castle"
def push(name) def push(name)
push_castle name push_castle name
@@ -214,10 +220,16 @@ class Homesick < Thor
end end
end end
def commit_castle(castle)
check_castle_existance(castle, "commit")
inside repos_dir.join(castle) do
git_commit_all
end
end
def push_castle(castle) def push_castle(castle)
check_castle_existance(castle, "push") check_castle_existance(castle, "push")
inside repos_dir.join(castle) do inside repos_dir.join(castle) do
git_commit_all
git_push git_push
end end
end end

View File

@@ -145,6 +145,12 @@ describe "homesick" do
end end
describe "commit" do
xit "needs testing"
end
describe "push" do describe "push" do
xit "needs testing" xit "needs testing"