alpha_omega 1.5.4 → 1.5.6

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 CHANGED
@@ -1 +1 @@
1
- 1.5.4
1
+ 1.5.6
data/libexec/_ao CHANGED
@@ -121,7 +121,7 @@ function main {
121
121
  export _AO_THIS_POD
122
122
  fi
123
123
 
124
- bundle check 2>&1 >/dev/null || { bundle install --quiet --local --path vendor/bundle || bundle check > /dev/null; }
124
+ bundle check 2>&1 >/dev/null || { bundle install --quiet --local --path vendor/bundle $_AO_EXTRA_BUNDLER_ARGS || bundle check > /dev/null; }
125
125
 
126
126
  if [[ "$nm_pod" = "pod1" ]]; then
127
127
  nm_pod="sys"
data/libexec/aoh-init CHANGED
@@ -38,7 +38,7 @@ ${dollar}ruby_loader ${dollar}app_ruby bundle exec ao "${dollar}{BASH_SOURCE##*/
38
38
  EOF
39
39
  chmod 755 "libexec/aohelper"
40
40
 
41
- for nm_cmd in activate check compare debug deploy dna hosts lock migrate proxy release restart rollback shell stage unlock; do
41
+ for nm_cmd in activate check compare debug deploy dna hosts lock migrate proxy release restart rollback shell stage unlock signoff; do
42
42
  ln -nfs "../libexec/aohelper" bin/$nm_cmd
43
43
  done
44
44
  else
@@ -0,0 +1,36 @@
1
+ #!/bin/bash
2
+
3
+ #/ NAME
4
+ #/ deploy --
5
+ #/
6
+ #/ SYNOPSIS
7
+ #/
8
+ #/ deploy
9
+
10
+ # figure out the project root under which bin, lib live
11
+ shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
12
+
13
+ # load a jason bourne library
14
+ source "$shome/libexec/_treadstone"
15
+
16
+ # define command line options:
17
+ # var name, default, description, short option
18
+ DEFINE_boolean first "$FLAGS_FALSE" "first time signing off?"
19
+
20
+ # entry point
21
+ function main {
22
+ if [[ "$#" = 0 ]]; then
23
+ logger_fatal "must specify a semver"
24
+ exit 1
25
+ fi
26
+
27
+ local ver_signoff="$1"; shift
28
+
29
+ if [[ "$FLAGS_first" = "$FLAGS_FALSE" ]]; then
30
+ git fetch -f origin refs/notes/deploys:refs/notes/deploys
31
+ fi
32
+ git notes --ref=deploys append -m "$ver_signoff signoff $LOGNAME $(date)"
33
+ git push origin refs/notes/deploys
34
+ }
35
+
36
+ require sub "$BASH_SOURCE" "$@"
data/libexec/aohelper CHANGED
@@ -1,5 +1,3 @@
1
- #!/bin/bash
2
-
3
1
  function ryaml {
4
2
  ruby -ryaml -e 'def ps x; unless x.nil?; puts (x.class == String || x.class == Fixnum) ? x : x.to_yaml; end; end; ps ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[acc.class == Array ? key.to_i : key] }' "$@" 2>&-
5
3
  }
@@ -11,7 +9,6 @@ ruby_loader="$(ryaml $shome/config/deploy.yml ruby_loader)"
11
9
  PATH="$PATH:/usr/local/rvm/bin:$HOME/.rvm/bin"
12
10
 
13
11
  if ! $ruby_loader $app_ruby bundle check 2>&- > /dev/null; then
14
- echo "Bundling gems" 1>&2 # TODO use logger stderr
15
12
  $ruby_loader $app_ruby bundle install --local --quiet --path vendor/bundle
16
13
  fi
17
14
  $ruby_loader $app_ruby bundle exec ao "${BASH_SOURCE##*/}" "$@"
@@ -50,6 +50,7 @@ function main {
50
50
 
51
51
  git submodule -q update --init --recursive
52
52
 
53
+ export _AO_EXTRA_BUNDLER_ARGS="--without development:test"
53
54
  bin/$cmd_deploy "$@"
54
55
  }
55
56
 
data/sbin/signoff ADDED
@@ -0,0 +1,20 @@
1
+ #!/bin/bash
2
+
3
+ #/ NAME
4
+ #/ aoh-stub -- aliases bin/xxx to bin/aoh xxx
5
+ #/
6
+ #/ SYNOPSIS
7
+ #/ aoh-sub
8
+
9
+ # figure out the project root under which bin, lib live
10
+ shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
11
+
12
+ # load a jason bourne library
13
+ source "$shome/libexec/_treadstone"
14
+
15
+ # entry point
16
+ function main {
17
+ exec "$shome/libexec/aoh" "$(basename "$0")" "$@"
18
+ }
19
+
20
+ require 'sub' "$BASH_SOURCE" "$@"
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: 11
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 4
10
- version: 1.5.4
9
+ - 6
10
+ version: 1.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem
@@ -131,6 +131,7 @@ files:
131
131
  - libexec/aoh-restart
132
132
  - libexec/aoh-rollback
133
133
  - libexec/aoh-shell
134
+ - libexec/aoh-signoff
134
135
  - libexec/aoh-stage
135
136
  - libexec/aoh-stub
136
137
  - libexec/aoh-task
@@ -186,6 +187,7 @@ files:
186
187
  - sbin/restart
187
188
  - sbin/rollback
188
189
  - sbin/shell
190
+ - sbin/signoff
189
191
  - sbin/stage
190
192
  - sbin/task
191
193
  - sbin/unlock