alpha_omega 1.3.21 → 1.3.22

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.3.21
1
+ 1.3.22
@@ -5,13 +5,17 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
5
5
  order = []
6
6
 
7
7
  on :before do
8
- order << [:start, current_task]
9
- start_times[current_task] = Time.now
8
+ unless skip_performance
9
+ order << [:start, current_task]
10
+ start_times[current_task] = Time.now
11
+ end
10
12
  end
11
13
 
12
14
  on :after do
13
- order << [:end, current_task]
14
- end_times[current_task] = Time.now
15
+ unless skip_performance
16
+ order << [:end, current_task]
17
+ end_times[current_task] = Time.now
18
+ end
15
19
  end
16
20
 
17
21
  config.on :exit do
@@ -41,4 +45,14 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
41
45
  end
42
46
  l "=========================================================="
43
47
  end
48
+
49
+ namespace :deploy do
50
+ namespace :enable do
51
+ task :performance do
52
+ set :skip_performance, false
53
+ end
54
+ end
55
+ end
44
56
  end
57
+
58
+ after "deploy:began", "deploy:enable:performance"
@@ -35,6 +35,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
35
35
 
36
36
  _cset :skip_scm, false
37
37
  _cset :skip_notifications, false
38
+ _cset :skip_performance, true
38
39
  _cset :scm, :git
39
40
  _cset :deploy_via, :checkout
40
41
  _cset(:branch) { AlphaOmega.what_branch }
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: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 21
10
- version: 1.3.21
9
+ - 22
10
+ version: 1.3.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem