Class: CloudProviders::Revoke
- Inherits:
-
Ec2Helper
- Object
- CloudProvider
- Ec2Helper
- CloudProviders::Revoke
- Defined in:
- lib/cloud_providers/ec2/helpers/revoke.rb
Instance Attribute Summary
Attributes inherited from CloudProvider
Instance Method Summary collapse
Methods inherited from Ec2Helper
#as, #ec2, #elb, #initialize, #pool, property, #rds
Methods inherited from CloudProvider
#after_initialized, #bootstrap_nodes!, #default_keypair_path, default_keypair_path, #initialize, #method_missing
Constructor Details
This class inherits a constructor from CloudProviders::Ec2Helper
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CloudProviders::CloudProvider
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cloud_providers/ec2/helpers/revoke.rb', line 9 def run puts "Revoking: #{cloud.proper_name} for #{protocol} to #{from_port}:#{to_port} #{network}" = { :group_name => cloud.proper_name, :ip_protocol => protocol, :from_port => from_port, :to_port => to_port, :cidr_ip => network} ec2.revoke_security_group_ingress() rescue nil end |