alpha_omega 0.0.83 → 0.0.84
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/lib/alpha_omega/deploy.rb +0 -15
- data/lib/alpha_omega/version.rb +1 -1
- data/libexec/{patch → build} +27 -1
- data/libexec/check +27 -1
- data/libexec/compare +27 -1
- data/libexec/config +74 -0
- data/libexec/deploy +27 -1
- data/libexec/dist +74 -0
- data/libexec/dna +27 -1
- data/libexec/hosts +27 -1
- data/libexec/invoke +74 -0
- data/libexec/proxy +6 -0
- data/libexec/release +74 -0
- data/libexec/restart +74 -0
- data/libexec/rollback +27 -1
- data/libexec/shell +27 -1
- data/libexec/stage +27 -1
- metadata +25 -21
data/lib/alpha_omega/deploy.rb
CHANGED
@@ -51,9 +51,6 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
51
51
|
|
52
52
|
_cset (:figlet) { [%x(which figlet).strip].reject {|f| !(File.executable? f)}.first || echo }
|
53
53
|
|
54
|
-
_cset :admin_hosts, /^/
|
55
|
-
_cset :gateway_host, "localhost"
|
56
|
-
|
57
54
|
# =========================================================================
|
58
55
|
# These variables should NOT be changed unless you are very confident in
|
59
56
|
# what you are doing. Make sure you understand all the implications of your
|
@@ -562,18 +559,6 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
562
559
|
end
|
563
560
|
end
|
564
561
|
|
565
|
-
task :no_gateway do
|
566
|
-
unset :gateway
|
567
|
-
end
|
568
|
-
|
569
|
-
task :ssh_gateway do
|
570
|
-
# set gateway on non-admin servers, defaulting to the developer admin host
|
571
|
-
if ENV["GATEWAY"] || !admin_hosts.match(Socket.gethostname)
|
572
|
-
ssh_options[:forward_agent] = true
|
573
|
-
set :gateway, ENV["GATEWAY"] ? ENV["GATEWAY"] : gateway_host
|
574
|
-
end
|
575
|
-
end
|
576
|
-
|
577
562
|
on :exit do
|
578
563
|
unless local_only
|
579
564
|
put full_log, "#{log_path}/#{application}_last_deploy-#{release_name}-#{branch.gsub(/\W+/,"_")}.log-#{Time.now.strftime('%Y%m%d-%H%M')}"
|
data/lib/alpha_omega/version.rb
CHANGED
data/libexec/{patch → build}
RENAMED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/check
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/compare
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/config
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
#!/bin/bash -e
|
2
|
+
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
9
|
+
case "$(basename $0)" in
|
10
|
+
deploy|release)
|
11
|
+
bundle exec cap ssh_gateway "$@" deploy
|
12
|
+
;;
|
13
|
+
|
14
|
+
rollback)
|
15
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
16
|
+
;;
|
17
|
+
|
18
|
+
stage)
|
19
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
20
|
+
;;
|
21
|
+
|
22
|
+
compare)
|
23
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
24
|
+
;;
|
25
|
+
|
26
|
+
restart)
|
27
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
28
|
+
;;
|
29
|
+
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
50
|
+
shell)
|
51
|
+
bundle exec cap ssh_gateway "$@" shell
|
52
|
+
;;
|
53
|
+
|
54
|
+
hosts)
|
55
|
+
export LOCAL_ONLY=true
|
56
|
+
|
57
|
+
{
|
58
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
59
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
60
|
+
;;
|
61
|
+
|
62
|
+
dna)
|
63
|
+
export LOCAL_ONLY=true
|
64
|
+
|
65
|
+
{
|
66
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
67
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
68
|
+
;;
|
69
|
+
|
70
|
+
*)
|
71
|
+
bundle exec cap ssh_gateway "$@"
|
72
|
+
;;
|
73
|
+
esac
|
74
|
+
|
data/libexec/deploy
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/dist
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
#!/bin/bash -e
|
2
|
+
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
9
|
+
case "$(basename $0)" in
|
10
|
+
deploy|release)
|
11
|
+
bundle exec cap ssh_gateway "$@" deploy
|
12
|
+
;;
|
13
|
+
|
14
|
+
rollback)
|
15
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
16
|
+
;;
|
17
|
+
|
18
|
+
stage)
|
19
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
20
|
+
;;
|
21
|
+
|
22
|
+
compare)
|
23
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
24
|
+
;;
|
25
|
+
|
26
|
+
restart)
|
27
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
28
|
+
;;
|
29
|
+
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
50
|
+
shell)
|
51
|
+
bundle exec cap ssh_gateway "$@" shell
|
52
|
+
;;
|
53
|
+
|
54
|
+
hosts)
|
55
|
+
export LOCAL_ONLY=true
|
56
|
+
|
57
|
+
{
|
58
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
59
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
60
|
+
;;
|
61
|
+
|
62
|
+
dna)
|
63
|
+
export LOCAL_ONLY=true
|
64
|
+
|
65
|
+
{
|
66
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
67
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
68
|
+
;;
|
69
|
+
|
70
|
+
*)
|
71
|
+
bundle exec cap ssh_gateway "$@"
|
72
|
+
;;
|
73
|
+
esac
|
74
|
+
|
data/libexec/dna
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/hosts
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/invoke
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
#!/bin/bash -e
|
2
|
+
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
9
|
+
case "$(basename $0)" in
|
10
|
+
deploy|release)
|
11
|
+
bundle exec cap ssh_gateway "$@" deploy
|
12
|
+
;;
|
13
|
+
|
14
|
+
rollback)
|
15
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
16
|
+
;;
|
17
|
+
|
18
|
+
stage)
|
19
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
20
|
+
;;
|
21
|
+
|
22
|
+
compare)
|
23
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
24
|
+
;;
|
25
|
+
|
26
|
+
restart)
|
27
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
28
|
+
;;
|
29
|
+
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
50
|
+
shell)
|
51
|
+
bundle exec cap ssh_gateway "$@" shell
|
52
|
+
;;
|
53
|
+
|
54
|
+
hosts)
|
55
|
+
export LOCAL_ONLY=true
|
56
|
+
|
57
|
+
{
|
58
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
59
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
60
|
+
;;
|
61
|
+
|
62
|
+
dna)
|
63
|
+
export LOCAL_ONLY=true
|
64
|
+
|
65
|
+
{
|
66
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
67
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
68
|
+
;;
|
69
|
+
|
70
|
+
*)
|
71
|
+
bundle exec cap ssh_gateway "$@"
|
72
|
+
;;
|
73
|
+
esac
|
74
|
+
|
data/libexec/proxy
ADDED
data/libexec/release
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
#!/bin/bash -e
|
2
|
+
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
9
|
+
case "$(basename $0)" in
|
10
|
+
deploy|release)
|
11
|
+
bundle exec cap ssh_gateway "$@" deploy
|
12
|
+
;;
|
13
|
+
|
14
|
+
rollback)
|
15
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
16
|
+
;;
|
17
|
+
|
18
|
+
stage)
|
19
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
20
|
+
;;
|
21
|
+
|
22
|
+
compare)
|
23
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
24
|
+
;;
|
25
|
+
|
26
|
+
restart)
|
27
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
28
|
+
;;
|
29
|
+
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
50
|
+
shell)
|
51
|
+
bundle exec cap ssh_gateway "$@" shell
|
52
|
+
;;
|
53
|
+
|
54
|
+
hosts)
|
55
|
+
export LOCAL_ONLY=true
|
56
|
+
|
57
|
+
{
|
58
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
59
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
60
|
+
;;
|
61
|
+
|
62
|
+
dna)
|
63
|
+
export LOCAL_ONLY=true
|
64
|
+
|
65
|
+
{
|
66
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
67
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
68
|
+
;;
|
69
|
+
|
70
|
+
*)
|
71
|
+
bundle exec cap ssh_gateway "$@"
|
72
|
+
;;
|
73
|
+
esac
|
74
|
+
|
data/libexec/restart
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
#!/bin/bash -e
|
2
|
+
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
9
|
+
case "$(basename $0)" in
|
10
|
+
deploy|release)
|
11
|
+
bundle exec cap ssh_gateway "$@" deploy
|
12
|
+
;;
|
13
|
+
|
14
|
+
rollback)
|
15
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
16
|
+
;;
|
17
|
+
|
18
|
+
stage)
|
19
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
20
|
+
;;
|
21
|
+
|
22
|
+
compare)
|
23
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
24
|
+
;;
|
25
|
+
|
26
|
+
restart)
|
27
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
28
|
+
;;
|
29
|
+
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
50
|
+
shell)
|
51
|
+
bundle exec cap ssh_gateway "$@" shell
|
52
|
+
;;
|
53
|
+
|
54
|
+
hosts)
|
55
|
+
export LOCAL_ONLY=true
|
56
|
+
|
57
|
+
{
|
58
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
59
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
60
|
+
;;
|
61
|
+
|
62
|
+
dna)
|
63
|
+
export LOCAL_ONLY=true
|
64
|
+
|
65
|
+
{
|
66
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
67
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
68
|
+
;;
|
69
|
+
|
70
|
+
*)
|
71
|
+
bundle exec cap ssh_gateway "$@"
|
72
|
+
;;
|
73
|
+
esac
|
74
|
+
|
data/libexec/rollback
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/shell
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
data/libexec/stage
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
+
if ! echo "$hst_this" | egrep "^(admin|develop)"; then
|
4
|
+
# ssh into deploy host and run from there
|
5
|
+
exec bin/proxy $(basename $0) "$@"
|
6
|
+
exit 1
|
7
|
+
fi
|
8
|
+
|
3
9
|
case "$(basename $0)" in
|
4
|
-
deploy|
|
10
|
+
deploy|release)
|
5
11
|
bundle exec cap ssh_gateway "$@" deploy
|
6
12
|
;;
|
7
13
|
|
@@ -21,6 +27,26 @@ case "$(basename $0)" in
|
|
21
27
|
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
28
|
;;
|
23
29
|
|
30
|
+
restart)
|
31
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
32
|
+
;;
|
33
|
+
|
34
|
+
build)
|
35
|
+
bundle exec cap ssh_gateway "$@" deploy:build
|
36
|
+
;;
|
37
|
+
|
38
|
+
dist)
|
39
|
+
bundle exec cap ssh_gateway "$@" deploy:dist
|
40
|
+
;;
|
41
|
+
|
42
|
+
config)
|
43
|
+
bundle exec cap ssh_gateway "$@" deploy:config
|
44
|
+
;;
|
45
|
+
|
46
|
+
invoke)
|
47
|
+
bundle exec cap ssh_gateway "$@" invoke
|
48
|
+
;;
|
49
|
+
|
24
50
|
shell)
|
25
51
|
bundle exec cap ssh_gateway "$@" shell
|
26
52
|
;;
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alpha_omega
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 183
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 84
|
10
|
+
version: 0.0.84
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|
@@ -16,8 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-08-31 00:00:00
|
20
|
-
default_executable:
|
19
|
+
date: 2011-08-31 00:00:00 Z
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
23
22
|
name: grit
|
@@ -119,31 +118,36 @@ files:
|
|
119
118
|
- LICENSE
|
120
119
|
- README.mkd
|
121
120
|
- Procfile.rb
|
122
|
-
- libexec/
|
123
|
-
- libexec/
|
121
|
+
- libexec/build
|
122
|
+
- libexec/check
|
124
123
|
- libexec/compare
|
125
|
-
- libexec/
|
124
|
+
- libexec/config
|
126
125
|
- libexec/deploy
|
127
|
-
- libexec/
|
126
|
+
- libexec/dist
|
128
127
|
- libexec/dna
|
129
|
-
- libexec/check
|
130
128
|
- libexec/hosts
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
129
|
+
- libexec/invoke
|
130
|
+
- libexec/proxy
|
131
|
+
- libexec/release
|
132
|
+
- libexec/restart
|
133
|
+
- libexec/rollback
|
134
|
+
- libexec/shell
|
135
|
+
- libexec/stage
|
136
|
+
- lib/alpha_omega/deploy/dependencies.rb
|
134
137
|
- lib/alpha_omega/deploy/local_dependency.rb
|
138
|
+
- lib/alpha_omega/deploy/remote_dependency.rb
|
139
|
+
- lib/alpha_omega/deploy/scm/base.rb
|
140
|
+
- lib/alpha_omega/deploy/scm/git.rb
|
141
|
+
- lib/alpha_omega/deploy/scm.rb
|
135
142
|
- lib/alpha_omega/deploy/strategy/base.rb
|
136
143
|
- lib/alpha_omega/deploy/strategy/checkout.rb
|
137
144
|
- lib/alpha_omega/deploy/strategy/remote.rb
|
138
|
-
- lib/alpha_omega/deploy/scm.rb
|
139
|
-
- lib/alpha_omega/deploy/templates/maintenance.rhtml
|
140
145
|
- lib/alpha_omega/deploy/strategy.rb
|
141
|
-
- lib/alpha_omega/deploy/
|
142
|
-
- lib/alpha_omega/deploy
|
143
|
-
- lib/alpha_omega/
|
144
|
-
- lib/alpha_omega/
|
146
|
+
- lib/alpha_omega/deploy/templates/maintenance.rhtml
|
147
|
+
- lib/alpha_omega/deploy.rb
|
148
|
+
- lib/alpha_omega/utils.rb
|
149
|
+
- lib/alpha_omega/version.rb
|
145
150
|
- bin/alpha_omega
|
146
|
-
has_rdoc: true
|
147
151
|
homepage: https://github.com/HeSYINUvSBZfxqA/alpha_omega
|
148
152
|
licenses: []
|
149
153
|
|
@@ -173,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
177
|
requirements: []
|
174
178
|
|
175
179
|
rubyforge_project:
|
176
|
-
rubygems_version: 1.
|
180
|
+
rubygems_version: 1.8.17
|
177
181
|
signing_key:
|
178
182
|
specification_version: 3
|
179
183
|
summary: alpha_omega capistrano recipes
|