public
Rubygem
Description: A Capistrano extension for managing and running your app on Amazon EC2.
Clone URL: git://github.com/jnewland/capsize.git
readability yak shaving
jnewland (author)
Sat Apr 12 17:32:08 -0700 2008
commit  8beedaa16ab19982e140cf2f005a80aea8d79caa
tree    172fd38c2d14c79b50a058d14ba82cb1977c3af8
parent  f5277a380b5a6062b8de05b1fa01fbc55581b17e
...
28
29
30
31
 
32
33
34
35
 
36
37
38
...
42
43
44
45
 
46
47
48
...
28
29
30
 
31
32
33
34
 
35
36
37
38
...
42
43
44
 
45
46
47
48
0
@@ -28,11 +28,11 @@ module Capsize
0
       return hostnames if instances.reservationSet.nil?
0
       instances.reservationSet.item.each do |reservation|
0
         hostname = nil
0
- matches = false
0
+ in_group = false
0
         running = false
0
         unless reservation.groupSet.nil?
0
           reservation.groupSet.item.each do |group|
0
- matches = group.groupId == group_name
0
+ in_group = group.groupId == group_name
0
           end
0
         end
0
 
0
@@ -42,7 +42,7 @@ module Capsize
0
             running = (!instance.instanceState.nil? && (instance.instanceState.name == "running"))
0
           end
0
         end
0
- hostnames << hostname if matches and running
0
+ hostnames << hostname if in_group and running
0
       end
0
       return hostnames
0
     end

Comments

    No one has commented yet.