alpha_omega 1.3.24 → 1.3.25
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 +6 -4
- data/lib/alpha_omega/deploy.rb +6 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
1
|
+
1.3.25
|
|
@@ -13,8 +13,10 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
|
13
13
|
|
|
14
14
|
on :after do
|
|
15
15
|
unless skip_performance
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
unless skip_performance_task == curren_task
|
|
17
|
+
order << [:end, current_task]
|
|
18
|
+
end_times[current_task] = Time.now
|
|
19
|
+
end
|
|
18
20
|
end
|
|
19
21
|
end
|
|
20
22
|
|
|
@@ -50,10 +52,10 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
|
50
52
|
namespace :enable do
|
|
51
53
|
task :performance do
|
|
52
54
|
set :skip_performance, false
|
|
55
|
+
set :skip_performance_task, current_task
|
|
53
56
|
end
|
|
54
57
|
end
|
|
55
58
|
end
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
before "deploy:began", "deploy:enable:performance"
|
|
58
61
|
end
|
|
59
|
-
|
data/lib/alpha_omega/deploy.rb
CHANGED
|
@@ -36,6 +36,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
|
36
36
|
_cset :skip_scm, false
|
|
37
37
|
_cset :skip_notifications, false
|
|
38
38
|
_cset :skip_performance, true
|
|
39
|
+
_cset :skip_performance_task, ""
|
|
39
40
|
_cset :scm, :git
|
|
40
41
|
_cset :deploy_via, :checkout
|
|
41
42
|
_cset(:branch) { AlphaOmega.what_branch }
|
|
@@ -619,11 +620,14 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
|
|
|
619
620
|
end
|
|
620
621
|
end
|
|
621
622
|
|
|
622
|
-
task :
|
|
623
|
-
run "#{figlet} success | perl -pe 's{( +)}{chr(46) x length($1)}e'"
|
|
623
|
+
task :successful, :only => { :primary => true } do
|
|
624
624
|
set :success, true
|
|
625
|
+
run_locally"#{figlet} success | perl -pe 's{( +)}{chr(46) x length($1)}e'"
|
|
625
626
|
end
|
|
626
627
|
|
|
628
|
+
task :finished do
|
|
629
|
+
successful
|
|
630
|
+
end
|
|
627
631
|
end # :deploy
|
|
628
632
|
end # Capistrano::Configuration
|
|
629
633
|
|
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: 41
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 1.3.
|
|
9
|
+
- 25
|
|
10
|
+
version: 1.3.25
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- David Nghiem
|