Method: Tunl::Base#setup_security_group

Defined in:
lib/tunl.rb

#setup_security_group(name) ⇒ Object



122
123
124
125
126
127
128
129
# File 'lib/tunl.rb', line 122

def setup_security_group(name)
  # returns the names of all existing security groups prefixed with tunl_
  group = find_security_group(name)
  if group.nil?
    create_security_group(name)
    authorize_security_group(name)
  end
end