lib/fog/bouncer/source_manager.rb in fog-bouncer-0.2.5 vs lib/fog/bouncer/source_manager.rb in fog-bouncer-0.2.6

- old
+ new

@@ -23,11 +23,11 @@ private def create_missing_source_permissions if missing_source_permissions.any? - @group.remote.connection.authorize_security_group_ingress(@group.name, "IpPermissions" => IPPermissions.from(missing_source_permissions, :local_only => true)) unless Fog::Bouncer.pretending? + @group.remote.service.authorize_security_group_ingress(@group.name, "IpPermissions" => IPPermissions.from(missing_source_permissions, :local_only => true)) unless Fog::Bouncer.pretending? missing_source_permissions.each do |protocol| log({authorized: true}.merge(protocol.to_log)) protocol.remote = true unless Fog::Bouncer.pretending? end end @@ -39,10 +39,10 @@ end.flatten.compact end def remove_extra_source_permissions if extra_source_permissions.any? - @group.remote.connection.revoke_security_group_ingress(@group.name, "IpPermissions" => IPPermissions.from(extra_source_permissions, :remote_only => true)) unless Fog::Bouncer.pretending? + @group.remote.service.revoke_security_group_ingress(@group.name, "IpPermissions" => IPPermissions.from(extra_source_permissions, :remote_only => true)) unless Fog::Bouncer.pretending? extra_source_permissions.each do |protocol| log({revoked: true}.merge(protocol.to_log)) protocol.source.protocols.delete_if { |p| p == protocol } unless Fog::Bouncer.pretending? end end