heroku_deployer 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amitree/heroku_deployer.rb +15 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cd94d777dc10d4348774d0b174f44d2f60f648c
|
4
|
+
data.tar.gz: a3dad8202873e2ec02aef060001b0d186abdc855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc2c7ac466613167b9c00d38d044369ca4bda3d9f8d9d1cc37a85abb6b17b3243a03794faf7d7c097b873ae5899322a6a3045c91dd8f5212f5e19776c593c48
|
7
|
+
data.tar.gz: c82ac7bb4a910cd123693c383201a70fb66475cdb48859adcad3fbd55bc792fe086fbbafbf11f4cdf723cdfe30ec3b4bc15d74a879707f1f82d92d9b08617fc9
|
@@ -67,17 +67,25 @@ module Amitree
|
|
67
67
|
puts "- Trying staging release #{staging_release['name']} with commit #{staging_commit}" if options[:verbose]
|
68
68
|
puts " - Stories: #{story_ids.inspect}" if options[:verbose]
|
69
69
|
|
70
|
-
unaccepted_story_ids = story_ids.select { |
|
71
|
-
stories.each do |story|
|
72
|
-
story.blocked_by = unaccepted_story_ids
|
73
|
-
end
|
70
|
+
unaccepted_story_ids = story_ids.select { |story_id| get_tracker_status(story_id) != 'accepted' }
|
74
71
|
|
75
72
|
if unaccepted_story_ids.length > 0
|
73
|
+
stories.each do |story|
|
74
|
+
story.blocked_by = unaccepted_story_ids
|
75
|
+
end
|
76
76
|
puts " - Some stories are not yet accepted: #{unaccepted_story_ids.inspect}" if options[:verbose]
|
77
77
|
else
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
story_ids_referenced_later = story_ids & @git.stories_worked_on_between(staging_commit, 'HEAD')
|
79
|
+
if story_ids_referenced_later.length > 0
|
80
|
+
puts " - Some stories have been worked on in a later commit: #{story_ids_referenced_later}" if options[:verbose]
|
81
|
+
else
|
82
|
+
stories.each do |story|
|
83
|
+
story.blocked_by = unaccepted_story_ids
|
84
|
+
end
|
85
|
+
puts " - This release is good to go!" if options[:verbose]
|
86
|
+
result.staging_release_to_deploy = staging_release
|
87
|
+
break
|
88
|
+
end
|
81
89
|
end
|
82
90
|
end
|
83
91
|
|