Sha256: 0dff64bd3048fb1359b0b2dfe866106311c6c2d5a85c7445bb276b1f2b2aa748
Contents?: true
Size: 664 Bytes
Versions: 19
Compression:
Stored size: 664 Bytes
Contents
module CloudProviders class Revoke < Ec2Helper default_options({ :protocol => "tcp", :from_port => "22", :to_port => "22", :cidr_ip => "0.0.0.0/0"}) def run puts "Revoking: #{cloud.proper_name} for #{protocol} to #{from_port}:#{to_port} #{network}" options = { :group_name => cloud.proper_name, :ip_protocol => protocol, :from_port => from_port, :to_port => to_port, :cidr_ip => network} ec2.revoke_security_group_ingress(options) rescue nil end alias :network :cidr_ip end end
Version data entries
19 entries across 19 versions & 1 rubygems