lib/sgupdater/client.rb in sgupdater-0.1.4 vs lib/sgupdater/client.rb in sgupdater-0.2.0
- old
+ new
@@ -22,9 +22,15 @@
updater = Sgupdater::Updater.new(@cli_options)
updater.replace(@cli_options[:from_cidr], @cli_options[:to_cidr])
updater.update
end
+ def add
+ updater = Sgupdater::Updater.new(@cli_options)
+ updater.add(@cli_options[:from_cidr], @cli_options[:to_cidr])
+ updater.update
+ end
+
def security_groups_with_cidr(cidr)
@ec2.security_groups(
filters: [
{name: 'ip-permission.cidr', values: [cidr]}
]