Class: Sgupdater::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Aws
Defined in:
lib/sgupdater/cli.rb

Instance Method Summary collapse

Instance Method Details

#showObject



14
15
16
# File 'lib/sgupdater/cli.rb', line 14

def show
  client.get.each {|sg| show_security_groups(sg, options[:from_cidr], options[:to_cidr])}
end

#updateObject



21
22
23
24
25
26
27
28
# File 'lib/sgupdater/cli.rb', line 21

def update
  updated = client.update
  if updated
    puts "Update success"
  else
    puts "No change"
  end
end