Regions

I added the ability to specify which region a security group should be created in.
I like that too



> On Oct 15, 2014, at 4:08 PM, Nick LaMuro <notifications@github.com> wrote:
> 
> In lib/ec2-security-czar/security_group.rb:
> 
> > @@ -61,11 +64,20 @@ def self.from_aws
> >      # Returns - Array of all security group names
> >      def self.config_security_groups
> >        Dir["config/*.yml"].reject!{|file| file == "config/aws_keys.yml"}.map do |file|
> > +        next unless get_security_group_region(file) == region
> I would actually suggest breaking this up a bit:
> 
> def self.security_group_definition_files
>   Dir["config/*.yml"].reject!{|file| file == "config/aws_keys.yml"}
> end
> 
> def elf.config_security_groups
>   security_group_definition_files.reject { |file| get_security_group_region(file) == region}
>                                  .map { |file| File.basename(file,File.extname(file)) }
> end
> —
> Reply to this email directly or view it on GitHub.