alpha_omega 0.0.79 → 0.0.80
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/alpha_omega +9 -1
- data/lib/alpha_omega/version.rb +1 -1
- data/libexec/check +46 -1
- data/libexec/compare +46 -1
- data/libexec/deploy +46 -1
- data/libexec/dna +45 -4
- data/libexec/hosts +45 -4
- data/libexec/patch +46 -1
- data/libexec/rollback +46 -1
- data/libexec/shell +46 -1
- data/libexec/stage +46 -1
- metadata +3 -3
data/bin/alpha_omega
CHANGED
@@ -1,3 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
search = $:.inject([]) {|acc,d| acc.concat(["#{d}/libexec", "#{File.dirname(d)}/libexec" ].select {|libexec| libexec if File.directory? libexec }) }
|
4
|
+
|
5
|
+
script = search.collect {|f| "#{f}/#{File.basename(ARGV[0])}" }.find {|f| File.exists? f }
|
6
|
+
|
7
|
+
if script
|
8
|
+
system(script, *ARGV[1..-1])
|
9
|
+
else
|
10
|
+
puts "ERROR: can't find script #{File.basename(ARGV[0])}"
|
11
|
+
end
|
data/lib/alpha_omega/version.rb
CHANGED
data/libexec/check
CHANGED
@@ -1,3 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
48
|
+
|
data/libexec/compare
CHANGED
@@ -1,3 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
48
|
+
|
data/libexec/deploy
CHANGED
@@ -1,3 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
48
|
+
|
data/libexec/dna
CHANGED
@@ -1,7 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
4
48
|
|
5
|
-
{
|
6
|
-
cap $(for a in "$@"; do echo $a.yaml; done)
|
7
|
-
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
data/libexec/hosts
CHANGED
@@ -1,7 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
4
48
|
|
5
|
-
{
|
6
|
-
cap $(for a in "$@"; do echo $a.echo; done)
|
7
|
-
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
data/libexec/patch
CHANGED
@@ -1,3 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
48
|
+
|
data/libexec/rollback
CHANGED
@@ -1,3 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
48
|
+
|
data/libexec/shell
CHANGED
@@ -1,3 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
48
|
+
|
data/libexec/stage
CHANGED
@@ -1,3 +1,48 @@
|
|
1
1
|
#!/bin/bash -e
|
2
2
|
|
3
|
-
|
3
|
+
case "$(basename $0)" in
|
4
|
+
deploy|major|patch)
|
5
|
+
bundle exec cap ssh_gateway "$@" deploy
|
6
|
+
;;
|
7
|
+
|
8
|
+
rollback)
|
9
|
+
bundle exec cap ssh_gateway "$@" deploy:rollback
|
10
|
+
;;
|
11
|
+
|
12
|
+
stage)
|
13
|
+
bundle exec cap ssh_gateway "$@" deploy:update_code
|
14
|
+
;;
|
15
|
+
|
16
|
+
compare)
|
17
|
+
bundle exec cap ssh_gateway "$@" deploy:compare
|
18
|
+
;;
|
19
|
+
|
20
|
+
restart)
|
21
|
+
bundle exec cap ssh_gateway "$@" deploy:restart
|
22
|
+
;;
|
23
|
+
|
24
|
+
shell)
|
25
|
+
bundle exec cap ssh_gateway "$@" shell
|
26
|
+
;;
|
27
|
+
|
28
|
+
hosts)
|
29
|
+
export LOCAL_ONLY=true
|
30
|
+
|
31
|
+
{
|
32
|
+
cap $(for a in "$@"; do echo $a.echo; done)
|
33
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
|
34
|
+
;;
|
35
|
+
|
36
|
+
dna)
|
37
|
+
export LOCAL_ONLY=true
|
38
|
+
|
39
|
+
{
|
40
|
+
cap $(for a in "$@"; do echo $a.yaml; done)
|
41
|
+
} 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
|
42
|
+
;;
|
43
|
+
|
44
|
+
*)
|
45
|
+
bundle exec cap ssh_gateway "$@"
|
46
|
+
;;
|
47
|
+
esac
|
48
|
+
|
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: 191
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 80
|
10
|
+
version: 0.0.80
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Nghiem
|