alpha_omega 0.0.42 → 0.0.43

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alpha_omega (0.0.42)
4
+ alpha_omega (0.0.43)
5
5
  HeSYINUvSBZfxqA-capistrano
6
6
  HeSYINUvSBZfxqA-capistrano_colors
7
7
  HeSYINUvSBZfxqA-capistrano_log
data/README.mkd CHANGED
@@ -8,8 +8,8 @@ namespace and heavily altered to their present state.
8
8
  Getting Started
9
9
  ===============
10
10
 
11
- figlet must be installed. Your local machine must let you ssh and run sudo
12
- without a password during the deploy.
11
+ Your local machine must let you ssh and run sudo without a password
12
+ during the deploy.
13
13
 
14
14
  Move the example Capfile.
15
15
 
data/libexec/compare CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/bin/bash -e
2
2
 
3
- which figlet 2>&- > /dev/null
4
3
  bundle check || { bundle --local --path vendor/bundle && bundle check; }
5
4
  if [[ -z $1 ]]; then
6
5
  exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1
data/libexec/deploy CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/bin/bash -e
2
2
 
3
- which figlet 2>&- > /dev/null
4
3
  bundle check || { bundle --local --path vendor/bundle && bundle check; }
5
4
  if [[ -z $1 ]]; then
6
5
  exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1
data/libexec/major CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/bin/bash -e
2
2
 
3
- which figlet 2>&- > /dev/null
4
3
  bundle check || { bundle --local --path vendor/bundle && bundle check; }
5
4
  if [[ -z $1 ]]; then
6
5
  exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1
data/libexec/patch CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/bin/bash -e
2
2
 
3
- which figlet 2>&- > /dev/null
4
3
  bundle check || { bundle --local --path vendor/bundle && bundle check; }
5
4
  if [[ -z $1 ]]; then
6
5
  exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1
data/libexec/rollback CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/bin/bash -e
2
2
 
3
- which figlet 2>&- > /dev/null
4
3
  bundle check || { bundle --local --path vendor/bundle && bundle check; }
5
4
  if [[ -z $1 ]]; then
6
5
  exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1
data/libexec/shell CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/bin/bash -e
2
2
 
3
- which figlet 2>&- > /dev/null
4
3
  bundle check || { bundle --local --path vendor/bundle && bundle check; }
5
4
  exec bundle exec cap "$@" shell
data/libexec/stage CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/bin/bash -e
2
2
 
3
- which figlet 2>&- > /dev/null
4
3
  bundle check || { bundle --local --path vendor/bundle && bundle check; }
5
4
  if [[ -z $1 ]]; then
6
5
  exec bundle exec foreman start -f $(dirname $(dirname $0))/Procfile.rb -m 0 -c git=0,$(basename $0)=1
@@ -44,6 +44,8 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
44
44
  _cset :bundler_options, "--deployment --without development test"
45
45
  _cset :ruby_loader, ""
46
46
 
47
+ _cset :figlet, { [%x(which figlet).strip].reject {|f| !(File.executable? f)}.first || echo }
48
+
47
49
  # =========================================================================
48
50
  # These variables should NOT be changed unless you are very confident in
49
51
  # what you are doing. Make sure you understand all the implications of your
@@ -80,7 +82,7 @@ end
80
82
  _cset(:release_name) { if releases.length > 0
81
83
  w = current_workarea
82
84
  stage = releases[((releases.index(w)?releases.index(w):-1)+1)%releases.length]
83
- system "figlet -w 200 on #{stage}"
85
+ system "#{figlet} -w 200 on #{stage}"
84
86
  stage
85
87
  else
86
88
  ""
@@ -269,7 +271,7 @@ end
269
271
  run "ln -vsnf #{latest_release} #{current_path}"
270
272
  end
271
273
 
272
- system "figlet -w 200 #{release_name} activated"
274
+ system "#{figlet} -w 200 #{release_name} activated"
273
275
  end
274
276
  end
275
277
 
@@ -345,7 +347,7 @@ end
345
347
  DESC
346
348
  task :revision, :except => { :no_release => true } do
347
349
  if previous_release
348
- system "figlet -w 200 on #{previous_release}"
350
+ system "#{figlet} -w 200 on #{previous_release}"
349
351
  run "ln -vsnf #{previous_release} #{current_path}"
350
352
  else
351
353
  abort "could not rollback the code because there is no prior release"
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.42"
2
+ Version = "0.0.43"
3
3
  end
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: 75
4
+ hash: 73
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 42
10
- version: 0.0.42
9
+ - 43
10
+ version: 0.0.43
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem
@@ -1266,7 +1266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1266
1266
  requirements: []
1267
1267
 
1268
1268
  rubyforge_project:
1269
- rubygems_version: 1.8.11
1269
+ rubygems_version: 1.8.10
1270
1270
  signing_key:
1271
1271
  specification_version: 3
1272
1272
  summary: alpha_omega capistrano recipes