oxen_deployer_git 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oxen_deployer/git.rb +14 -3
- metadata +1 -1
data/lib/oxen_deployer/git.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class OxenDeployer::Git
|
2
2
|
|
3
3
|
# Duh.
|
4
|
-
VERSION = "1.0.
|
4
|
+
VERSION = "1.0.1"
|
5
5
|
|
6
6
|
set :source, OxenDeployer::Git.new
|
7
7
|
set :git_cmd, "git"
|
@@ -27,12 +27,23 @@ class OxenDeployer::Git
|
|
27
27
|
].join(" && ")
|
28
28
|
else
|
29
29
|
[ "rm -rf #{destination}",
|
30
|
-
"
|
30
|
+
"mkdir -p #{destination}",
|
31
31
|
"cd #{destination}",
|
32
|
-
"
|
32
|
+
"git init",
|
33
|
+
"git remote add -t #{revision} -f origin #{repository}",
|
34
|
+
"git checkout #{revision}",
|
33
35
|
submodule_cmd,
|
34
36
|
"cd -"
|
35
37
|
].join(" && ")
|
38
|
+
#
|
39
|
+
#
|
40
|
+
# [ "rm -rf #{destination}",
|
41
|
+
# "#{git_cmd} clone #{repository} #{destination}",
|
42
|
+
# "cd #{destination}",
|
43
|
+
# "#{git_cmd} checkout -f -b deployed-#{revision} #{revision}",
|
44
|
+
# submodule_cmd,
|
45
|
+
# "cd -"
|
46
|
+
# ].join(" && ")
|
36
47
|
end
|
37
48
|
end
|
38
49
|
|