alpha_omega 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alpha_omega (0.0.32)
4
+ alpha_omega (0.0.33)
5
5
  HeSYINUvSBZfxqA-capistrano
6
6
  HeSYINUvSBZfxqA-capistrano_colors
7
7
  HeSYINUvSBZfxqA-capistrano_log
@@ -41,6 +41,9 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
41
41
 
42
42
  _cset :dir_perms, "0775"
43
43
 
44
+ _cset :ruby_env, false
45
+ _cset :ruby_rvm, false
46
+
44
47
  # =========================================================================
45
48
  # These variables should NOT be changed unless you are very confident in
46
49
  # what you are doing. Make sure you understand all the implications of your
@@ -65,21 +68,21 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
65
68
  _cset(:current_release) { release_path }
66
69
  _cset(:current_workarea) { capture("readlink #{current_path} || true").strip.split("/")[-1] }
67
70
  _cset(:previous_release) { if releases.length > 0
68
- w = current_workarea
69
- releases.index(w) && releases[(releases.index(w)-1)%releases.length] || nil
70
- else
71
- ""
72
- end
73
- }
71
+ w = current_workarea
72
+ releases.index(w) && releases[(releases.index(w)-1)%releases.length] || nil
73
+ else
74
+ ""
75
+ end
76
+ }
74
77
  _cset(:release_name) { if releases.length > 0
75
- w = current_workarea
76
- stage = releases[((releases.index(w)?releases.index(w):-1)+1)%releases.length]
77
- system "figlet -w 200 on #{stage}"
78
- stage
78
+ w = current_workarea
79
+ stage = releases[((releases.index(w)?releases.index(w):-1)+1)%releases.length]
80
+ system "figlet -w 200 on #{stage}"
81
+ stage
79
82
  else
80
83
  ""
81
84
  end
82
- }
85
+ }
83
86
 
84
87
  _cset(:current_revision) { capture("cat #{current_path}/REVISION", :except => { :no_release => true }).chomp }
85
88
  _cset(:latest_revision) { capture("cat #{current_release}/REVISION", :except => { :no_release => true }).chomp }
@@ -483,10 +486,24 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
483
486
  task :bundle do
484
487
  run_script = <<-SCRIPT
485
488
  set -e; cd #{release_path};
486
- [[ -f #{ruby_env} ]] && . #{ruby_env};
487
- [[ -f #{ruby_rvm} ]] && { set +e; source #{ruby_rvm}; set -e; };
489
+ SCRIPT
490
+
491
+ if ruby_env
492
+ run_script += <<-SCRIPT
493
+ [[ -f #{ruby_env} ]] && . #{ruby_env};
494
+ SCRIPT
495
+ end
496
+
497
+ if ruby_rvm
498
+ run_script += <<-SCRIPT
499
+ [[ -f #{ruby_rvm} ]] && { set +e; source #{ruby_rvm}; set -e; };
500
+ SCRIPT
501
+ end
502
+
503
+ run_script += <<-SCRIPT
488
504
  bundle check 2>&1 > /dev/null || { bundle install --deployment --quiet --local --without development test && bundle check; };
489
505
  SCRIPT
506
+
490
507
  run run_script.gsub(/[\n\r]+[ \t]+/, " ")
491
508
  end
492
509
  end
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.32"
2
+ Version = "0.0.33"
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: 95
4
+ hash: 93
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 32
10
- version: 0.0.32
9
+ - 33
10
+ version: 0.0.33
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem