lib/cap_recipes/tasks/gitdeploy/setup.rb in crazycode-cap-recipes-0.3.38 vs lib/cap_recipes/tasks/gitdeploy/setup.rb in crazycode-cap-recipes-0.3.39
- old
+ new
@@ -39,19 +39,23 @@
task :setup do
gitdeploy.setup_remote
gitdeploy.setup_local
end
+ desc "setup remote gitdeploy dir"
task :setup_remote do
run clone_repository_command()
end
+ desc "setup locate gitdeploy dir"
task :setup_local do
system clone_repository_local_command()
end
+ desc "tag build version. use -s tag=xxx to set tag's name"
task :tag do
+ gitdeploy.setup_local
tag_name = configuration[:tag]
if tag_name.nil?
rails "NO tag. pls use -s tag=xxx set tag_name"
end
@@ -80,9 +84,10 @@
if $? != 0
raise "git push --tags failed"
end
end
+ desc "deploy tagged version. use -s tag=xxx to set tag's name"
task :deploy do
tag_name = configuration[:tag]
if tag_name.nil?
rails "NO tag. pls use -s tag=xxx set tag_name"
end