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 +1 -1
- data/lib/alpha_omega/config/deploy_perf.rb +18 -4
- data/lib/alpha_omega/deploy.rb +1 -0
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
14
|
-
|
|
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"
|
data/lib/alpha_omega/deploy.rb
CHANGED
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:
|
|
4
|
+
hash: 55
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 1.3.
|
|
9
|
+
- 22
|
|
10
|
+
version: 1.3.22
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- David Nghiem
|