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 CHANGED
@@ -1,3 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- system(File.expand_path(File.join(File.dirname(__FILE__),"..","libexec",ARGV[0])),*ARGV[1..-1])
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
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.79"
2
+ Version = "0.0.80"
3
3
  end
data/libexec/check CHANGED
@@ -1,3 +1,48 @@
1
1
  #!/bin/bash -e
2
2
 
3
- exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 --args ssh_gateway "$@"
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
- exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 --args ssh_gateway "$@"
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
- exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 --args ssh_gateway "$@"
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
- export LOCAL_ONLY=true
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
- export LOCAL_ONLY=true
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
- exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 --args ssh_gateway "$@"
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
- exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 --args ssh_gateway "$@"
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
- exec cap ssh_gateway "$@" shell
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
- exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1 --args ssh_gateway "$@"
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: 129
4
+ hash: 191
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 79
10
- version: 0.0.79
9
+ - 80
10
+ version: 0.0.80
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem