crazycode-cap-recipes 0.3.38 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/crazycode-cap-recipes.gemspec +1 -1
- data/lib/cap_recipes/tasks/gitdeploy/setup.rb +5 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
|
@@ -41,15 +41,19 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
|
41
41
|
gitdeploy.setup_local
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
desc "setup remote gitdeploy dir"
|
|
44
45
|
task :setup_remote do
|
|
45
46
|
run clone_repository_command()
|
|
46
47
|
end
|
|
47
48
|
|
|
49
|
+
desc "setup locate gitdeploy dir"
|
|
48
50
|
task :setup_local do
|
|
49
51
|
system clone_repository_local_command()
|
|
50
52
|
end
|
|
51
53
|
|
|
54
|
+
desc "tag build version. use -s tag=xxx to set tag's name"
|
|
52
55
|
task :tag do
|
|
56
|
+
gitdeploy.setup_local
|
|
53
57
|
tag_name = configuration[:tag]
|
|
54
58
|
if tag_name.nil?
|
|
55
59
|
rails "NO tag. pls use -s tag=xxx set tag_name"
|
|
@@ -82,6 +86,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
|
82
86
|
end
|
|
83
87
|
end
|
|
84
88
|
|
|
89
|
+
desc "deploy tagged version. use -s tag=xxx to set tag's name"
|
|
85
90
|
task :deploy do
|
|
86
91
|
tag_name = configuration[:tag]
|
|
87
92
|
if tag_name.nil?
|